node-ip-address — security advisory
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.
- Products
- node-ip-address
- Affected versions
- 10.2.0-2, 10.3.1-1, 10.4.0-1, 6.3.0-1, 6.4.0-1, 8.1.0-2, 8.1.0-3
- Fixed versions
- Not specified
- CVEs
- CVE-2026-42338
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:03 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-42338
node-ip-address
Fixed versions: Not specified
node-ip-address
Fixed versions: Not specified
node-ip-address
Fixed versions: Not specified
node-ip-address
Fixed versions: Not specified
node-ip-address
Fixed versions: Not specified
node-ip-address
Fixed versions: Not specified
Complete source record
{
"id": "8d4f23c4e6a1c26499050c6f60fb7f2df059459c2da3dce2d873a48c7007efb9",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-42338",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-42338",
"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.",
"evidence": "osv:UBUNTU-CVE-2026-42338",
"products": [
{
"name": {
"value": "node-ip-address",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.3.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-ip-address",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.4.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "8.1.0-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-ip-address",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.1.0-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-ip-address",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.1.0-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-ip-address",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.1.0-3",
"evidence": "/affected/4/versions"
},
{
"value": "10.2.0-2",
"evidence": "/affected/4/versions"
},
{
"value": "10.3.1-1",
"evidence": "/affected/4/versions"
},
{
"value": "10.4.0-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "node-ip-address",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.1.0-2",
"evidence": "/affected/5/versions"
},
{
"value": "8.1.0-3",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-42338",
"aliases": [
"UBUNTU-CVE-2026-42338"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ip-address",
"purl": "pkg:deb/ubuntu/node-ip-address?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"6.3.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42338.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ip-address",
"binary_version": "6.3.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ip-address",
"purl": "pkg:deb/ubuntu/node-ip-address?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"6.4.0-1",
"8.1.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42338.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ip-address",
"binary_version": "8.1.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ip-address",
"purl": "pkg:deb/ubuntu/node-ip-address?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"8.1.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42338.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ip-address",
"binary_version": "8.1.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ip-address",
"purl": "pkg:deb/ubuntu/node-ip-address?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"8.1.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42338.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ip-address",
"binary_version": "8.1.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ip-address",
"purl": "pkg:deb/ubuntu/node-ip-address?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"8.1.0-3",
"10.2.0-2",
"10.3.1-1",
"10.4.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42338.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ip-address",
"binary_version": "10.4.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-ip-address",
"purl": "pkg:deb/ubuntu/node-ip-address?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"8.1.0-2",
"8.1.0-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42338.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ip-address",
"binary_version": "8.1.0-3"
}
]
}
}
],
"modified": "2026-10-17T13:00:05.026198902Z",
"provider": "osv",
"upstream": [
"CVE-2026-42338"
],
"references": [
"https://ubuntu.com/security/CVE-2026-42338",
"https://www.cve.org/CVERecord?id=CVE-2026-42338",
"https://github.com/beaugunderson/ip-address/security/advisories/GHSA-v2v4-37r5-5v8g"
]
},
"related_cves": [
{
"value": "CVE-2026-42338",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 360280,
"published_at": "2026-05-12T20:16:00+00:00"
}