CVE-2014-125128
Apostrophecms Sanitize-html vulnerability
'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.
Affected products
Sanitize-html. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Apostrophecms Sanitize-html runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/apostrophecms/sanitize-html/issues/1 · Vendor Advisory
- github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86 · Patch
- github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02 · Patch
- github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2014-125128
- cve.org/CVERecord?id=CVE-2014-125128
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.