CVE-2021-29418
MEDIUM 5.3CVSS 3.1Improper 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | netmask_project | netmaskcpe: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
- https://github.com/rs/node-netmask/commit/3f19a056c4eb808ea4a29f234274c67bc5a848f4 · Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20210604-0001/ · Third Party Advisory, WEB
- https://vuln.ryotak.me/advisories/6 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-28918 · ADVISORY
- https://github.com/advisories/GHSA-pch5-whg9-qr2r · ADVISORY
- https://github.com/rs/node-netmask · WEB
- https://github.com/rs/node-netmask/blob/98294cb20695f2c6c36219a4fbcd4744fb8d0682/CHANGELOG.md#v110-mar-18-2021 · WEB
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md · WEB
- https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects · WEB
- https://security.netapp.com/advisory/ntap-20210528-0010 · WEB
- https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications · WEB
- https://www.npmjs.com/package/netmask · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-29418 · ADVISORY
- https://sick.codes/sick-2021-011 · WEB
- https://sick.codes/universal-netmask-npm-package-used-by-270000-projects-vulnerable-to-octal-input-data-server-side-request-forgery-remote-file-inclusion-local-file-inclusion-and-more-cve-2021-28918 · WEB
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)