All reports
Medium

JS Html Sanitizer allows XSS when used with contentEditable

Affected versions

Affected versions
< 2.0.3
Fixed version
2.0.3

Exploitation

CVE-2025-29771

Probability of exploitation in the next 30 days: 0.40%

FIRST EPSS · 2026-11-22

Description

Impact

XSS 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.

Patches

Patched in version 2.0.3

Links