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

CVE-2021-29418: Improper Input Validation

March 30, 2021 (updated June 8, 2021)

The netmask package for Node.js mishandles certain unexpected characters in an IP address string, such as an octal digit of This (in some situations) allows attackers to bypass access control that is based on IP addresses.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2021-29418 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 before 2.0.1

Fixed versions

  • 2.0.1

Solution

Upgrade to version 2.0.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/netmask/CVE-2021-29418.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:13 +0000.