Live threats

All CVEs / Netmask Project

CVE-2021-29418Netmask Project Netmask

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Mar 30, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Netmask.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm netmask < 1.1.0 1.1.0 npm install netmask@1.1.0
npm netmask < 2.0.1 2.0.1 npm install netmask@2.0.1

Per OSV / GitHub Advisories (GHSA-4c7m-wxvm-r7gc, GHSA-pch5-whg9-qr2r). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
netmask_projectnetmask< 2.0.1

Official sources

References

Links published by the sources. Open them with care.