Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. netmask
  4. ›
  5. CVE-2021-28918

CVE-2021-28918: Improper Input Validation

April 1, 2021 (updated August 8, 2023)

Improper input validation of octal strings in netmask npm 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-28918

Code Behaviors & Features

Detect and mitigate CVE-2021-28918 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.0.6

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-704: Incorrect Type Conversion or Cast

Source file

npm/netmask/CVE-2021-28918.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.