Skip to main content
← All vulnerabilities
CVE-2026-42338GHSA-V2V4-37R5-5V8G

ip-address: XSS in Address6 HTML-emitting methods

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.1.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript. Prior to 10.1.1, Address6.group() and Address6.link() do not HTML-escape attacker-controlled content before embedding it in the HTML strings they return, and AddressError.parseMessage (emitted by the Address6 constructor for invalid input) can contain unescaped attacker-controlled content in one branch. An application that (1) passes untrusted input to Address6 and (2) renders the output of these methods, or the thrown error's parseMessage, as HTML (e.g. via innerHTML) is vulnerable to cross-site scripting. This vulnerability is fixed in 10.1.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • beaugunderson ip-address

    fixed in 10.1.1

  • ip-addressnpm

    fixed in 10.1.1

References 1

GitHub · beaugunderson/ip-address