Cross-site Scripting Vulnerability in sanitize-html by ApostropheCMS
CVE-2019-25225
6.1MEDIUM
What is CVE-2019-25225?
The sanitize-html library, in versions before 2.0.0-beta, exhibits a vulnerability that allows for Cross-site Scripting (XSS) attacks. Specifically, the sanitizeHtml() function fails to properly sanitize content when employing the custom transformTags option. This inadequate sanitization can permit malicious input to be executed as code, potentially leading to severe security breaches for web applications that rely on this library. Developers are strongly advised to upgrade to the latest version to mitigate such risks.
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.