GHSA-pch5-whg9-qr2r

Suggest an improvement
Source
https://github.com/advisories/GHSA-pch5-whg9-qr2r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-pch5-whg9-qr2r/GHSA-pch5-whg9-qr2r.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-pch5-whg9-qr2r
Aliases
Related
Published
2021-03-29T21:32:05Z
Modified
2025-01-08T08:12:23.369760Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
netmask npm package mishandles octal input data
Details

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.

Database specific
{
    "nvd_published_at": "2021-03-30T07:15:00Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-29T21:31:24Z"
}
References

Affected packages

npm / netmask

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.1