Skip to content

netmask npm package mishandles octal input data

Moderate severity GitHub Reviewed Published Mar 29, 2021 to the GitHub Advisory Database • Updated Sep 8, 2023

Package

npm netmask (npm)

Affected versions

< 2.0.1

Patched versions

2.0.1

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.

References

Reviewed Mar 29, 2021
Published to the GitHub Advisory Database Mar 29, 2021
Published by the National Vulnerability Database Mar 30, 2021
Last updated Sep 8, 2023

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Weaknesses

CVE ID

CVE-2021-29418

GHSA ID

GHSA-pch5-whg9-qr2r

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.