CVE-2025-29771

Medium

Description

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.

SeverityMedium
CVSS5.3
Exploit probability—
Product@jitbit/htmlsanitizer
PublishedMar 14, 2025
First seenMar 14, 2025

How to fix

Update
  • @jitbit/htmlsanitizer2.0.3 or later

Affected products

ProductAffected versionsFixed in
@jitbit/htmlsanitizernpmv < 2.0.32.0.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.