6.1Medium
CVE-2014-125128
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.
Weakness (CWE):
CWE-79
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| apostrophecms | sanitize-html | < 1.0.3 | |
| — | sanitize-html | < 1.0.3 |
References and patches
- https://github.com/apostrophecms/sanitize-html/issues/1 issue-trackingIssue TrackingVendor Advisory
- https://github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02 patchPatch
- https://github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86 patchPatch
- https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128 exploitExploitThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*< 1.0.3