Cross-site Scripting Vulnerability in sanitize-html by ApostropheCMS
CVE-2019-25225

6.1MEDIUM

Key Information:

Status
Vendor
CVE Published:
8 September 2025

Badges

👾 Exploit Exists🟡 Public PoC

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.

References

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2019-25225 : Cross-site Scripting Vulnerability in sanitize-html by ApostropheCMS