Security mailing lists by PureSourceCode

CVE-2021-29418

MEDIUM 5.3CVSS 3.1

Improper parsing of octal bytes in netmask

The netmask package before 2.0.1 for Node.js mishandles certain unexpected characters in an IP address string, such as an octal digit of 9. This (in some situations) allows attackers to bypass access control that is based on IP addresses. NOTE: this issue exists because of an incomplete fix for CVE-2021-28918.

Published
30 Mar 2021
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-20
Also known as
CVE-2021-28918GHSA-4c7m-wxvm-r7gcGHSA-pch5-whg9-qr2r
Sources
NVDJSONOSV GHSA-4c7m-wxvm-r7gcJSONOSV GHSA-pch5-whg9-qr2rJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD netmask_project netmask
cpe:2.3:a:netmask_project:netmask:*:*:*:*:*:node.js:*:*
< 2.0.1 2.0.1
OSV npm netmask < 1.1.0 1.1.0
OSV npm netmask < 2.0.1 2.0.1

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Mar 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Mar 2021)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Apr 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.