Skip to content

XSS when used with contentEditable

Moderate
alex-jitbit published GHSA-vhv4-fh94-jm5x Mar 14, 2025

Package

npm @jitbit/htmlsanitizer (npm)

Affected versions

< 2.0.3

Patched versions

2.0.3

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

Severity

Moderate

CVE ID

CVE-2025-29771

Weaknesses

No CWEs