Security mailing lists by PureSourceCode

CVE-2021-28918

CRITICAL 9.1CVSS 3.1

Improper parsing of octal bytes in netmask

Improper input validation of octal strings in netmask npm package v1.0.6 and below allows unauthenticated remote attackers to perform indeterminate SSRF, RFI, and LFI attacks on many of the dependent packages. A remote unauthenticated attacker can bypass packages relying on netmask to filter IPs and reach critical VPN or LAN hosts.

Published
1 Apr 2021
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-20CWE-704
Also known as
CVE-2021-29418GHSA-4c7m-wxvm-r7gcGHSA-pch5-whg9-qr2r
Sources
NVDJSONOSV GHSA-4c7m-wxvm-r7gcJSONOSV GHSA-pch5-whg9-qr2rJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.4 AV:N/AC:L/Au:N/C:P/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD netmask_project netmask
cpe:2.3:a:netmask_project:netmask:*:*:*:*:*:node.js:*:*
<= 1.0.6
OSV npm netmask < 1.1.0 1.1.0
OSV npm netmask < 2.0.1 2.0.1

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Apr 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Mar 2021)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Apr 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.