Every CVE Search/ Get API key

CVE-2026-111997

Duplicate Advisory: ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process

6.3 MediumFix available

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
Low

Exploit likelihood

0.32%Up 0.1 points since Oct 18, 2026
90%50%10%1%

What each source reports

CVE List Score used 6.3

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
CVE-2026-111997
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-02
EUVDEUVD-2026-103378 6.3

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
EUVD-2026-103378
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-p3hm-x653-5rc6 6.3

Duplicate Advisory: ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-rxp7-6hxx-x8q5. This link is maintained to preserve external references.

Original Description

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
GHSA-p3hm-x653-5rc6
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-1333
Updated
2026-11-02
GitHub AdvisoriesGHSA-rxp7-6hxx-x8q5 6.3

ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process

Summary

new Address6() and Address6.isValid() strip a zone identifier with the pattern /%.*$/ before they apply the 45-character length limit. When the string holds many % characters followed by a line terminator, the pattern is retried from every % and each attempt scans to the line terminator before failing, so rejecting the string takes time proportional to the square of its length. 10,000 % characters and a newline take 41 ms, 40,000 take 632 ms and 100,000 take 3.9 s of synchronous work. The same strings without the newline are rejected in under a millisecond.

An application that validates an attacker-supplied string with these methods can be stalled by a single long request. The input is rejected with the correct AddressError; the cost of reaching that rejection is the defect.

Details

The constructor in src/ipv6.ts removes the CIDR suffix, then the zone, then checks the length of what is left:

const zone = constants6.RE_ZONE_STRING.exec(address);

if (zone) {
  this.zone = zone[0];

  address = address.replace(constants6.RE_ZONE_STRING, '');
}

const longest = this.groups * 5 + 5;

if (address.length > longest) {
  throw new AddressError(`IPv6 addresses are at most ${longest} characters.`);
}

RE_ZONE_STRING is /%.*$/. It has no anchor at its start, . does not match a line terminator (\n, \r, U+2028 or U+2029), and without the m flag $ matches only at the end of the input. For % repeated N times and then \n, the engine starts a match at the first %, .* consumes the remaining % characters up to the newline, $ fails there, and backtracking through every shorter .* fails too. The engine then starts again at the second %, and so on: N starts, each proportional to N. The length limit that follows rejects the string in constant time, after the scan has already run.

The line terminator need not be last. Any string in which many % characters precede a line terminator behaves the same way.

Every entry point that passes a caller's string to the Address6 constructor is affected: new Address6(), isValid(), both arguments of fromAddressAndMask() and fromAddressAndWildcardMask(), and the prefix argument of fromAddress4Nat64() and toAddress4Nat64(). fromWildcard() rejects a % before it constructs anything, fromURL() admits only hex digits, colons and dots in a host, and fromArpa() checks the nibble grammar first, so those three are unaffected. Address4 has no zone and is unaffected.

Affected versions

<= 10.7.3. The zone pattern has been in the constructor since 1.0.0; 5.9.4, 9.0.5 and 10.7.0 show the same timings as 10.7.3.

Impact

Address6.isValid() on N % characters and a newline, measured on ip-address 10.7.3 and node 24.21.0:

| Input | Wall time | Same length of ! | |---|---|---| | 5,461 characters | 13 ms | 0.1 ms | | 16 KiB | 108 ms | 0.1 ms | | 100 KB | 3.9 s | 0.1 ms | | 256 KiB | 27 s | 0.2 ms |

The parse is synchronous, so the event loop is blocked for the whole of the wall time and nothing else on that process is served. No memory is retained and the process resumes when the call returns.

Reachability

The input needs a line terminator after the % characters, which decides where it can arrive. An HTTP header value cannot carry a carriage return or a line feed, so a host or address taken from a header does not reach this. A URL can carry both characters percent-encoded at three bytes each, and Node's default 16 KB limit on the request line and headers admits about 5,461 of them: 13 ms. A request body is where the larger sizes come from. Common body parsers default to between 100 KB and 1 MB, and at 100 KB one field passed to the parser unchecked blocks the process for 3.9 s.

Proof of concept

npm i [email protected], then:

const { Address6 } = require('ip-address');

function time(input) {
  const start = process.hrtime.bigint();

  Address6.isValid(input);

  return…
Record
GHSA-rxp7-6hxx-x8q5
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-02
NVD 6.3

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
CVE-2026-111997
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-1333
Updated
2026-11-02
OSV 6.3

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
CVE-2026-111997
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-02
Show 15 moreShow less
OSVDEBIAN-CVE-2026-111997 6.3

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
DEBIAN-CVE-2026-111997
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVGHSA-p3hm-x653-5rc6 6.3

Duplicate Advisory: ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-rxp7-6hxx-x8q5. This link is maintained to preserve external references.

Original Description

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
GHSA-p3hm-x653-5rc6
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-1333
Updated
2026-11-02
OSVGHSA-rxp7-6hxx-x8q5 6.3

ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process

Summary

new Address6() and Address6.isValid() strip a zone identifier with the pattern /%.*$/ before they apply the 45-character length limit. When the string holds many % characters followed by a line terminator, the pattern is retried from every % and each attempt scans to the line terminator before failing, so rejecting the string takes time proportional to the square of its length. 10,000 % characters and a newline take 41 ms, 40,000 take 632 ms and 100,000 take 3.9 s of synchronous work. The same strings without the newline are rejected in under a millisecond.

An application that validates an attacker-supplied string with these methods can be stalled by a single long request. The input is rejected with the correct AddressError; the cost of reaching that rejection is the defect.

Details

The constructor in src/ipv6.ts removes the CIDR suffix, then the zone, then checks the length of what is left:

const zone = constants6.RE_ZONE_STRING.exec(address);

if (zone) {
  this.zone = zone[0];

  address = address.replace(constants6.RE_ZONE_STRING, '');
}

const longest = this.groups * 5 + 5;

if (address.length > longest) {
  throw new AddressError(`IPv6 addresses are at most ${longest} characters.`);
}

RE_ZONE_STRING is /%.*$/. It has no anchor at its start, . does not match a line terminator (\n, \r, U+2028 or U+2029), and without the m flag $ matches only at the end of the input. For % repeated N times and then \n, the engine starts a match at the first %, .* consumes the remaining % characters up to the newline, $ fails there, and backtracking through every shorter .* fails too. The engine then starts again at the second %, and so on: N starts, each proportional to N. The length limit that follows rejects the string in constant time, after the scan has already run.

The line terminator need not be last. Any string in which many % characters precede a line terminator behaves the same way.

Every entry point that passes a caller's string to the Address6 constructor is affected: new Address6(), isValid(), both arguments of fromAddressAndMask() and fromAddressAndWildcardMask(), and the prefix argument of fromAddress4Nat64() and toAddress4Nat64(). fromWildcard() rejects a % before it constructs anything, fromURL() admits only hex digits, colons and dots in a host, and fromArpa() checks the nibble grammar first, so those three are unaffected. Address4 has no zone and is unaffected.

Affected versions

<= 10.7.3. The zone pattern has been in the constructor since 1.0.0; 5.9.4, 9.0.5 and 10.7.0 show the same timings as 10.7.3.

Impact

Address6.isValid() on N % characters and a newline, measured on ip-address 10.7.3 and node 24.21.0:

| Input | Wall time | Same length of ! | |---|---|---| | 5,461 characters | 13 ms | 0.1 ms | | 16 KiB | 108 ms | 0.1 ms | | 100 KB | 3.9 s | 0.1 ms | | 256 KiB | 27 s | 0.2 ms |

The parse is synchronous, so the event loop is blocked for the whole of the wall time and nothing else on that process is served. No memory is retained and the process resumes when the call returns.

Reachability

The input needs a line terminator after the % characters, which decides where it can arrive. An HTTP header value cannot carry a carriage return or a line feed, so a host or address taken from a header does not reach this. A URL can carry both characters percent-encoded at three bytes each, and Node's default 16 KB limit on the request line and headers admits about 5,461 of them: 13 ms. A request body is where the larger sizes come from. Common body parsers default to between 100 KB and 1 MB, and at 100 KB one field passed to the parser unchecked blocks the process for 3.9 s.

Proof of concept

npm i [email protected], then:

const { Address6 } = require('ip-address');

function time(input) {
  const start = process.hrtime.bigint();

  Address6.isValid(input);

  return…
Record
GHSA-rxp7-6hxx-x8q5
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-1333
Updated
2026-11-02
OSVUBUNTU-CVE-2026-111997 6.3

ip-address before 10.7.4 allows a denial of service (CPU consumption from quadratic complexity, and application stall) via many % characters in input reaching a function call that uses the Address6 constructor.

Record
UBUNTU-CVE-2026-111997
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Updated
2026-11-02
OSVCLSA-2026-1792473368 No score

TuxCare security update for ip-address (3 CVEs)

TuxCare rebuilt ip-address to address 3 CVEs. Fixed in 10.5.1-tuxcare.1.

Record
CLSA-2026-1792473368
Updated
2026-11-02
OSVCLSA-2026-1792486317 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 10.5.0-tuxcare.2.

Record
CLSA-2026-1792486317
Updated
2026-11-02
OSVCLSA-2026-1792494889 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 10.1.1-tuxcare.2.

Record
CLSA-2026-1792494889
Updated
2026-11-02
OSVCLSA-2026-1793097494 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 10.1.0-tuxcare.3.

Record
CLSA-2026-1793097494
Updated
2026-11-02
OSVCLSA-2026-1793098694 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 9.0.5-tuxcare.5.

Record
CLSA-2026-1793098694
Updated
2026-11-02
OSVCLSA-2026-1793111658 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 6.4.0-tuxcare.7.

Record
CLSA-2026-1793111658
Updated
2026-11-02
OSVCLSA-2026-1793111838 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 7.1.0-tuxcare.6.

Record
CLSA-2026-1793111838
Updated
2026-11-02
OSVCLSA-2026-1793180922 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 10.7.3-tuxcare.1.

Record
CLSA-2026-1793180922
Updated
2026-11-02
OSVCLSA-2026-1793183882 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 10.7.2-tuxcare.1.

Record
CLSA-2026-1793183882
Updated
2026-11-02
OSVCLSA-2026-1793187941 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 10.7.1-tuxcare.1.

Record
CLSA-2026-1793187941
Updated
2026-11-02
OSVCLSA-2026-1793207110 No score

TuxCare security update for ip-address (1 CVE)

TuxCare rebuilt ip-address to address 1 CVE. Fixed in 10.7.0-tuxcare.3.

Record
CLSA-2026-1793207110
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
ip-address
npm
through 10.7.3
10.7.4
ip-address
TuxCare:npm
From an advisory covering 3 CVEs
10.5.1-tuxcare.0 up to 10.5.1-tuxcare.1, plus listed versions
10.5.1
10.5.1-tuxcare.1
ip-address
TuxCare:npm
10.5.0-tuxcare.0 up to 10.5.0-tuxcare.2, plus listed versions
10.5.010.5.0-tuxcare.1
10.5.0-tuxcare.2
ip-address
TuxCare:npm
10.1.1-tuxcare.0 up to 10.1.1-tuxcare.2, plus listed versions
10.1.110.1.1-tuxcare.1
10.1.1-tuxcare.2
ip-address
TuxCare:npm
10.1.0-tuxcare.0 up to 10.1.0-tuxcare.3, plus listed versions
10.1.010.1.0-tuxcare.110.1.0-tuxcare.2
10.1.0-tuxcare.3
ip-address
TuxCare:npm
9.0.5-tuxcare.0 up to 9.0.5-tuxcare.5, plus listed versions
9.0.59.0.5-tuxcare.19.0.5-tuxcare.29.0.5-tuxcare.39.0.5-tuxcare.4
9.0.5-tuxcare.5
ip-address
TuxCare:npm
6.4.0-tuxcare.0 up to 6.4.0-tuxcare.7, plus listed versions
6.4.06.4.0-tuxcare.16.4.0-tuxcare.26.4.0-tuxcare.36.4.0-tuxcare.46.4.0-tuxcare.56.4.0-tuxcare.6
6.4.0-tuxcare.7
ip-address
TuxCare:npm
7.1.0-tuxcare.0 up to 7.1.0-tuxcare.6, plus listed versions
7.1.07.1.0-tuxcare.17.1.0-tuxcare.27.1.0-tuxcare.37.1.0-tuxcare.47.1.0-tuxcare.5
7.1.0-tuxcare.6
ip-address
TuxCare:npm
10.7.3-tuxcare.0 up to 10.7.3-tuxcare.1, plus listed versions
10.7.3
10.7.3-tuxcare.1
ip-address
TuxCare:npm
10.7.2-tuxcare.0 up to 10.7.2-tuxcare.1, plus listed versions
10.7.2
10.7.2-tuxcare.1
Show 11 moreShow less
Affected packages
PackageAffectedFixed
ip-address
TuxCare:npm
10.7.1-tuxcare.0 up to 10.7.1-tuxcare.1, plus listed versions
10.7.1
10.7.1-tuxcare.1
ip-address
TuxCare:npm
10.7.0-tuxcare.0 up to 10.7.0-tuxcare.3, plus listed versions
10.7.010.7.0-tuxcare.110.7.0-tuxcare.2
10.7.0-tuxcare.3
node-ip-address
Debian:12
All versions, plus listed versions
10.2.0-110.2.0-210.3.1-110.4.0-110.7.2-1
Show 4 moreShow less
10.7.4-110.7.5-18.1.0-28.1.0-3
None known
node-ip-address
Debian:13
All versions, plus listed versions
10.2.0-110.2.0-210.3.1-110.4.0-110.7.2-1
Show 4 moreShow less
10.7.4-110.7.5-18.1.0-28.1.0-3
None known
node-ip-address
Debian:14
before 10.7.4-1, plus listed versions
10.2.0-110.2.0-210.3.1-110.4.0-110.7.2-18.1.0-28.1.0-3
10.7.4-1
ip-address
npm
before 10.7.4
10.7.4
node-ip-address
Ubuntu:20.04:LTS
All versions, plus listed versions
6.3.0-1
None known
node-ip-address
Ubuntu:22.04:LTS
All versions, plus listed versions
6.4.0-18.1.0-2
None known
node-ip-address
Ubuntu:24.04:LTS
All versions, plus listed versions
8.1.0-2
None known
node-ip-address
Ubuntu:26.10
All versions, plus listed versions
8.1.0-310.2.0-210.3.1-110.4.0-1
None known
node-ip-address
Ubuntu:26.04:LTS
All versions, plus listed versions
8.1.0-28.1.0-3
None known

History

History
RecordedChangedSources
affected, facts
affected
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-111997 is a medium vulnerability (CVSS 6.3) in Beaugunderson Ip-address, published October 18, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.32%, the 24th percentile. Fixed in ip-address 10.7.4.

References

Show 5 moreShow less
This page doesn't list everything

Left out here: the rest of 2 source descriptions. The JSON record has them.

MoveEnter Open