'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 (`<a>`), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.
References
Link | Resource |
---|---|
https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128 | Exploit Third Party Advisory |
https://github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86 | Patch |
https://github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02 | Patch |
https://github.com/apostrophecms/sanitize-html/issues/1 | Issue Tracking Vendor Advisory |
Configurations
History
19 Sep 2025, 15:14
Type | Values Removed | Values Added |
---|---|---|
CPE | cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:* | |
First Time |
Apostrophecms
Apostrophecms sanitize-html |
|
References | () https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128 - Exploit, Third Party Advisory | |
References | () https://github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86 - Patch | |
References | () https://github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02 - Patch | |
References | () https://github.com/apostrophecms/sanitize-html/issues/1 - Issue Tracking, Vendor Advisory |
08 Sep 2025, 11:15
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2025-09-08 11:15
Updated : 2025-09-19 15:14
NVD link : CVE-2014-125128
Mitre link : CVE-2014-125128
CVE.ORG link : CVE-2014-125128
JSON object : View
Products Affected
apostrophecms
- sanitize-html
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')