node-sanitize-html — security advisory
'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). The function 'naughtyHref' doesn't properly validate the hyperreference (`href`) attribute in anchor tags (``), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.
- Products
- node-sanitize-html
- Affected versions
- 2.14.0+~2.13.0-1, 2.17.0+~2.16.1-1, 2.6.1-1, 2.8.0+~2.6.2-1
- Fixed versions
- Not specified
- CVEs
- CVE-2014-125128
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:21 UTC · Revision 1
Source evidence
'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). The function 'naughtyHref' doesn't properly validate the hyperreference (`href`) attribute in anchor tags (``), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.
osv:UBUNTU-CVE-2014-125128
node-sanitize-html
Fixed versions: Not specified
node-sanitize-html
Fixed versions: Not specified
node-sanitize-html
Fixed versions: Not specified
node-sanitize-html
Fixed versions: Not specified
node-sanitize-html
Fixed versions: Not specified
Complete source record
{
"id": "0bbd76e72cde04ac99f3dea37c1db4801ac08aaff2f2cdfd0118a142714e5c88",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2014-125128",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2014-125128",
"summary": "'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). The function 'naughtyHref' doesn't properly validate the hyperreference (`href`) attribute in anchor tags (``), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.",
"evidence": "osv:UBUNTU-CVE-2014-125128",
"products": [
{
"name": {
"value": "node-sanitize-html",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-sanitize-html",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.0+~2.6.2-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-sanitize-html",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.14.0+~2.13.0-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-sanitize-html",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.14.0+~2.13.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.17.0+~2.16.1-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-sanitize-html",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.14.0+~2.13.0-1",
"evidence": "/affected/4/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2014-125128",
"aliases": [
"UBUNTU-CVE-2014-125128"
],
"metrics": [
{
"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-sanitize-html",
"purl": "pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.6.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2014/UBUNTU-CVE-2014-125128.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-sanitize-html",
"binary_version": "2.6.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-sanitize-html",
"purl": "pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.8.0+~2.6.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2014/UBUNTU-CVE-2014-125128.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-sanitize-html",
"binary_version": "2.8.0+~2.6.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-sanitize-html",
"purl": "pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.14.0+~2.13.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2014/UBUNTU-CVE-2014-125128.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-sanitize-html",
"binary_version": "2.14.0+~2.13.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-sanitize-html",
"purl": "pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.14.0+~2.13.0-1",
"2.17.0+~2.16.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2014/UBUNTU-CVE-2014-125128.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-sanitize-html",
"binary_version": "2.17.0+~2.16.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-sanitize-html",
"purl": "pkg:deb/ubuntu/node-sanitize-html?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.14.0+~2.13.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2014/UBUNTU-CVE-2014-125128.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-sanitize-html",
"binary_version": "2.14.0+~2.13.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:52:52.947367857Z",
"provider": "osv",
"upstream": [
"CVE-2014-125128"
],
"references": [
"https://ubuntu.com/security/CVE-2014-125128",
"https://www.cve.org/CVERecord?id=CVE-2014-125128",
"https://github.com/apostrophecms/sanitize-html/issues/1",
"https://github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02",
"https://github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86",
"https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128"
]
},
"related_cves": [
{
"value": "CVE-2014-125128",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 353338,
"published_at": "2025-09-08T11:15:00+00:00"
}