Vulnerability · Published Mar 30, 2021 · Assigned by mitre
CVE-2021-29418
Medium 5.3
In plain English
A medium-severity security flaw in the netmask package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.3Medium
Exploit odds (30 days)1.5%top 25.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | netmask | 1.1.0 | GHSA-4c7m-wxvm-r7gc |
| npm | netmask | 2.0.1 | GHSA-pch5-whg9-qr2r |
Affected products (as reported)
References
- https://github.com/rs/node-netmask/commit/3f19a056c4eb808ea4a29f234274c67bc5a848f4 x_refsource_MISC
- https://vuln.ryotak.me/advisories/6 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210604-0001/ x_refsource_CONFIRM