Medium, CVSS 5.3npmAmendedPublished
netmask npm package mishandles octal input data
CVE-2021-28918 · GHSA-4c7m-wxvm-r7gc
- Affected
- npm netmask < 2.0.1
- Fixed in
- 2.0.1· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 2.0.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.