CVE-2019-25225
September 08, 2025
"sanitize-html" prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The "sanitizeHtml()" function in "index.js" does not sanitize content when using the custom "transformTags" option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.
Affected Packages
https://github.com/apostrophecms/sanitize-html.git (GITHUB):
Affected version(s) >=1.10.1 <2.0.0Fix Suggestion:
Update to version 2.0.0sanitize-html (NPM):
Affected version(s) >=0.1.0 <2.0.0Fix Suggestion:
Update to version 2.0.0Related ResourcesĀ (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.04