Cross-site Scripting Vulnerability in sanitize-html by ApostropheCMS
CVE-2014-125128
What is CVE-2014-125128?
The sanitize-html library, prior to version 1.0.3, is susceptible to Cross-site Scripting (XSS) attacks due to improper validation of the 'href' attribute in anchor tags. Specifically, the function 'naughtyHref' fails to correctly sanitize hyper-references, allowing attackers to exploit vulnerabilities via variations in case sensitivity, whitespace, or hexadecimal encodings. This oversight poses a significant risk for web applications utilizing this library, potentially enabling unauthorized script execution in the context of the user’s browser.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V3.1
Timeline
- 🟡
Public PoC available
- 👾
Exploit known to exist
Vulnerability published
Vulnerability Reserved