HtmlSanitizer vulnerable to XSS when used with contentEditable
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jitbit | HtmlSanitizer | before 2.0.3 | 2.0.3 | Patch available | CNA |
| — | @jitbit/htmlsanitizer (npm) | before 2.0.3 | 2.0.3 | Patch available | GHSA-vhv4-fh94-jm5x |
- HtmlSanitizer Vendorjitbit Affected before 2.0.3 Fixed in 2.0.3 Patch available CNA
- @jitbit/htmlsanitizer (npm) Vendor— Affected before 2.0.3 Fixed in 2.0.3 Patch available GHSA-vhv4-fh94-jm5x
Remediation
- Fix · CNA HtmlSanitizer (jitbit) Fixed in 2.0.3
- Fix · GHSA-vhv4-fh94-jm5x @jitbit/htmlsanitizer (npm) Fixed in 2.0.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-29771
- 2026-10-03 Alias added: GHSA-vhv4-fh94-jm5x
References
More jitbit vulnerabilities
- TI-2017-13659 Jitbit Helpdesk before 9.0.3 allows remote attackers to escalate privileges because of… CVSS 3.0HIGH 7.2
- TI-2019-13479 A cross-site scripting (XSS) vulnerability in Jitbit .NET Forum (aka ASP.NET forum) 8.3.8… CVSS 3.1MEDIUM 5.4
Sources
- CVE-2025-29771 · CVE Program
- CVE-2025-29771 · NVD
- FIRST EPSS
- GHSA-vhv4-fh94-jm5x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences