REDHAT-BUG-2542596: Medium severity npm/ip-address vulnerability

Published Sep 28, 2026
·
Updated

ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript. Prior to 10.7.1, the Address6 constructor, Address6.isValid, and parse code in src/ipv6.ts accept unbounded strings and expand invalid characters through REBADCHARACTERS into large diagnostics. Material impact occurs only when an application accepts a very large attacker-controlled field and passes it to Address6 parsing without an earlier length bound. Common URL and header limits, and common body-parser defaults, generally constrain the effect; common defaults typically exclude 32 MiB fields. Megabyte-scale fields can cause a synchronous stall and high transient memory use, approximately 16 MiB can trigger an invalid string length exception, and process termination occurs at approximately 32 MiB. The affected entry points include Address6.isValid and construction paths that reach parse. This issue is fixed in version 10.7.1.

Affected Software

1 affected component
npm/ip-address<10.7.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ip-address to a version that resolves this vulnerability.

    Fixed in 10.7.1
  2. Compensating control

    Apply an earlier length bound to attacker-controlled fields before passing them to Address6 parsing.

Event History

Sep 28, 2026
Data Sourced
via Red Hat·06:04 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required for this issue to have material impact?

An application must accept a very large attacker-controlled field and pass it to Address6 parsing without applying an earlier length limit. The affected paths include Address6.isValid and construction paths that reach parse.

2

Are typical application defaults likely to expose this issue?

Common URL and header limits, as well as common body-parser defaults, generally constrain the input size and typically exclude 32 MiB fields. Exposure is more likely where applications permit unusually large request fields or otherwise process unbounded attacker-controlled strings.

3

What happens at different malicious input sizes?

Megabyte-scale fields can cause a synchronous stall and high transient memory use. Around 16 MiB, parsing can trigger an invalid string length exception; around 32 MiB, it can terminate the process.

4

What mitigation is available if an upgrade cannot happen immediately?

Enforce a length bound on attacker-controlled values before passing them to Address6 parsing, including calls to Address6.isValid. Limits on request bodies, headers, URLs, and any other input channel should prevent very large fields from reaching the library.

5

Which version contains the fix?

The issue is fixed in ip-address version 10.7.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203