# CVE-2014-125128: 'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS).

- Severity: Medium 6.1 (CVSS:3.1, scored by Checkmarx) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-08T10:09:25.057Z
- Modified: 2026-06-17T00:04:31.050Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Checkmarx

## 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.

(As written by CVE List.)

## Affected

- sanitize-html: before 1.0.3
- apostrophecms sanitize-html: before 1.0.3

## References

- <https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128> (exploit, third-party-advisory)
- <https://github.com/apostrophecms/sanitize-html/issues/1> (issue-tracking, vendor-advisory)
- <https://github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02> (patch)
- <https://github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86> (patch)

## Sources

- CVE List: [CVE-2014-125128](https://www.cve.org/CVERecord?id=CVE-2014-125128), CVE Terms of Use, modified 2025-09-08
- NVD: [CVE-2014-125128](https://nvd.nist.gov/vuln/detail/CVE-2014-125128), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2014-125128 · Whole record: https://cve.day/CVE-2014-125128.json · Rebuilt by cve.day 2026-11-25T22:57:21.800Z
