CVE-2021-29418: Input Validation
Node.js netmask module could allow a remote attacker to bypass security restrictions, caused by improper handling of certain unexpected characters in an IP address string. By using a specially-crafted argument using octal literals, an attacker could exploit this vulnerability to bypass access control that is based on IP addresses.
Other sources
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 Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2021-29418?
CVE-2021-29418 is a vulnerability in the netmask package before version 2.0.1 for Node.js.
What is the severity of CVE-2021-29418?
CVE-2021-29418 has a severity score of 9.1 (critical).
How does CVE-2021-29418 affect Node.js?
CVE-2021-29418 in the netmask package for Node.js allows a remote attacker to bypass security restrictions by exploiting improper handling of certain unexpected characters in an IP address string.
How can CVE-2021-29418 be exploited?
CVE-2021-29418 can be exploited by using a specially-crafted argument using octal literals.
How can I fix CVE-2021-29418?
To fix CVE-2021-29418, update the netmask package to version 2.0.1 or later.