Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ip-address
  4. ›
  5. CVE-2026-101912

CVE-2026-101912: ip-address: isInSubnet() and isHostInSubnet() compare addresses of different families as if they shared an address space, allowing an allowlist check to admit an address outside its range

September 29, 2026

isInSubnet() and isHostInSubnet() accept an address of either family and compare masked binary strings without checking that both operands are the same family. Address4 pads to 32 bits and Address6 to 128, so whenever the leading bits agree the strings are equal: new Address6('a00::1').isInSubnet(new Address4('10.0.0.0/8')) is true, and new Address4('32.0.0.1').isInSubnet(new Address6('2000::/3')) is true. No IPv4 address is inside an IPv6 network, so both answers are untrue.

An application that parses untrusted input as whichever family accepts it and then tests the result against a fixed-family allowlist can admit an address outside the list.

References

  • github.com/advisories/GHSA-j6r3-76f7-8jcv
  • github.com/beaugunderson/ip-address/commit/1343629d57fea413644a5c9d41ff1e59619f3f28
  • github.com/beaugunderson/ip-address/releases/tag/v10.7.1
  • github.com/beaugunderson/ip-address/security/advisories/GHSA-j6r3-76f7-8jcv
  • nvd.nist.gov/vuln/detail/CVE-2026-101912

Code Behaviors & Features

Detect and mitigate CVE-2026-101912 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 10.7.1

Fixed versions

  • 10.7.1

Solution

Upgrade to version 10.7.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-697: Incorrect Comparison
  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

npm/ip-address/CVE-2026-101912.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 12 Oct 2026 12:17:09 +0000.