Intel

AIKIDO-2026-165198

ip-address is vulnerable to Regular Expression Denial of Service (ReDoS)

CVE-2026-111997Published Oct 19, 2026
October 19, 2026

63

CVE Score

Medium

Regular Expression Denial of Service (ReDoS)

Are you affected? Scan for Free

TL;DR

Address6's constructor and Address6.isValid() strip an IPv6 zone identifier with the unanchored regex /%.*$/ before checking the address length. A string holding many % characters followed by a line terminator makes the regex retry from every %, each attempt scanning to the terminator before failing, so rejecting the input takes time proportional to the square of its length. An application that validates externally supplied strings with these methods can be stalled by a single long request even though the input is ultimately rejected. The fix replaces the regex scan with an index-based search, making zone extraction linear time.

How do I fix this?

Upgrade the ip-address library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

3.2.0 - 10.7.3

Fixed in 10.7.4

Background info

ip-address is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 3.2.0 - 10.7.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea