NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-29771: JS Html Sanitizer allows XSS when used with contentEditable

mediumCVSS 4.0 6.9GHSA-vhv4-fh94-jm5x

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

Published Mar 14, 2025

Affected packages

@jitbit/htmlsanitizer

Ecosystem
npm
Affected
< 2.0.3
Fixed in
2.0.3
Check
npm ls @jitbit/htmlsanitizer

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology