CVE-2025-29771
JS Html Sanitizer allows XSS when used with contentEditable
EPSS 0.16%
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
How to fix CVE-2025-29771
To remediate CVE-2025-29771, upgrade the affected package to a fixed version below.
- npm/@jitbit/htmlsanitizer—upgrade to 2.0.3 or later
Is CVE-2025-29771 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 2.0.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |