CVE-2021-28918

Description

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.

Severity
CRITICAL
CVSS v3
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N · source nvd
Exploit chance (EPSS)
15.037%
chance of exploitation in the next 30 days
higher than 96.8% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 1

Weakness

Timeline

  1. 2021-03-29GitHub advisory published (GHSA-pch5-whg9-qr2r)3 days before publication
  2. 2021-04-01Published by the CNA12:33 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Nuclei templates:

GitHub advisory GHSA-pch5-whg9-qr2r, affected packages:

PackageVulnerable versionsFixed in
npm netmaskbefore 2.0.12.0.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
netmask_project netmaskthrough 1.0.6no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources