CVE-2025-29771

MEDIUM CVSS 4.0: 5.3 EPSS 0.40%
Updated Mar 14, 2025
Htmlsanitizer
Parameter Value
CVSS 5.3 (MEDIUM)
Affected Versions before 2.0.3
Fixed In 2.0.3
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Htmlsanitizer
Public PoC No

HtmlSanitizer is a client-side HTML Sanitizer. Versions prior to 2.0.3 have a cross-site scripting vulnerability when the sanitizer is used with a `contentEditable` element to set the elements `innerHTML` to a sanitized string produced by the package. If the code is particularly crafted to abuse the code beautifier, that runs AFTER sanitation.

The issue is patched in version 2.0.3.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v4.0

Related Vulnerabilities