Description
ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript. Prior to 10.7.1, the isInSubnet and isHostInSubnet methods in src/common.ts compare masked binary strings without validating that both operands use the same IP family. A cross-family containment check whose leading address bits match makes the masked strings compare equal even though IPv4 and IPv6 do not share an address space. An allowlist or denylist decision can therefore classify an address outside the intended range as contained. This issue is fixed in version 10.7.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| beaugunderson | ip-address | < 10.7.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-ip-address | 10.7.2-1 | — |
| Debian 13 | node-ip-address | No fix yet | — |
| Debian 12 | node-ip-address | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-ip-address | No fix yet | — |
| Ubuntu 26.04 LTS | node-ip-address | No fix yet | — |
| Ubuntu 24.04 LTS | node-ip-address | No fix yet | — |
| Ubuntu 22.04 LTS | node-ip-address | No fix yet | — |
| Ubuntu 20.04 LTS | node-ip-address | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.139.1-r1 | — |
| Wolfi rolling | lerna | 10.0.1-r7 | — |
| Wolfi rolling | npm-12 | 12.2.0-r1 | — |
| Wolfi rolling | opensearch-dashboards-3 | 3.9.0-r1 | — |
| Wolfi rolling | prism | 5.16.0-r14 | — |
| Wolfi rolling | renovate | 44.133.0-r3 | — |
| Wolfi rolling | sqlpad | 7.5.7-r45 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | ip-address | < 10.7.1 | 10.7.1 | GHSA-j6r3-76f7-8jcv |