CVE-2014-125128 Details
Description
'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.
A cross-site scripting (XSS) vulnerability has been identified in the npm package 'sanitize-html', in versions prior to 1.0.3. The issue arises in the 'naughtyHref' function, which fails to properly validate the 'href' attribute of anchor tags. This lack of validation allows malicious links to bypass the sanitizer by using mixed case, whitespace, or hexadecimal encodings. Exploitation of this vulnerability enables the execution of JavaScript embedded in the 'href' attribute.
Users can upgrade to 'sanitize-html' version 1.0.3 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86 | Checkmarx | Patch |
| https://github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02 | Checkmarx | Patch |
| https://github.com/apostrophecms/sanitize-html/issues/1 | Checkmarx | Issue TrackingVendor Advisory |
| https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128 | Checkmarx | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | Checkmarx |
Affected Products
| Product | Versions |
|---|---|
| apostrophecms sanitize-html | < 1.0.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | Checkmarx |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 19, 2025 | Initial Analysis | [email protected] |
| Sep 8, 2025 | New CVE Received | Checkmarx |