CVE-2026-42338

Source
https://cve.org/CVERecord?id=CVE-2026-42338
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42338.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-42338
Aliases
Downstream
Related
Published
2026-05-12T19:43:16.470Z
Modified
2026-05-28T04:11:59.961920344Z
Severity
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
ip-address: XSS in Address6 HTML-emitting methods
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42338.json",
    "cwe_ids": [
        "CWE-79"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/beaugunderson/ip-address

Affected ranges

Type
GIT
Repo
https://github.com/beaugunderson/ip-address
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*
1.0.0
1.1.0
2.*
2.0.0
v10.*
v10.0.0
v10.0.1
v10.1.0
v2.*
v2.0.1
v2.0.2
v3.*
v3.1.0
v5.*
v5.2.0
v5.3.0
v5.4.0
v5.4.1
v5.5.0
v5.6.0
v5.7.0
v5.8.0
v5.8.1
v5.8.2
v5.8.3
v5.8.4
v5.8.5
v5.8.6
v5.8.7
v5.8.8
v5.8.9
v5.9.0
v5.9.1
v5.9.2
v5.9.3
v5.9.4
v6.*
v6.0.0
v6.1.0
v6.2.0
v6.3.0
v6.4.0
v7.*
v7.0.0
v7.0.1
v7.1.0
v8.*
v8.0.0
v8.1.0
v9.*
v9.0.0
v9.0.1
v9.0.2
v9.0.3
v9.0.5
v9.1.0-0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42338.json"