CVE-2021-29418Netmask Project Netmask
Medium 5.3 No auth needed
Follow: this CVE · Netmask Project · Netmask Project Netmask We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Mar 30, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Netmask.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | netmask |
< 1.1.0 |
1.1.0 |
npm install netmask@1.1.0 |
| npm | netmask |
< 2.0.1 |
2.0.1 |
npm install netmask@2.0.1 |
Per OSV / GitHub Advisories (GHSA-4c7m-wxvm-r7gc, GHSA-pch5-whg9-qr2r). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| netmask_project | netmask | < 2.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- security.netapp.com Third Party Advisory
- vuln.ryotak.me Third Party Advisory