CVE-2019-25225
Published:September 08, 2025
Updated:May 17, 2026
"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
sanitize-html (CDN_JS):
Affected version(s) >=1.19.2 <=1.27.5Fix Suggestion:
Update to version no_fixhttps://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.0-betaFix Suggestion:
Update to version 2.0.0-betasanitize-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.05