Advisory

GHSA-pch5-whg9-qr2r

Also known as: CVE-2021-28918, CVE-2021-29418, GHSA-4c7m-wxvm-r7gc

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-29 21:32 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

netmask

npm · All systems

Affected

  • introduced 0, fixed 2.0.1 (semver)

Fixed versions

2.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences