{"id":"CVE-2025-29771","aliases":["GHSA-vhv4-fh94-jm5x"],"url":"https://o3.security/vulnerability/CVE-2025-29771","summary":"HtmlSanitizer vulnerable to XSS when used with contentEditable","details":"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.","published":"2025-03-14T18:56:24.504Z","modified":"2026-08-12T03:51:17.217591034Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@jitbit/htmlsanitizer","fixedVersion":"2.0.3"}],"fix":{"url":"https://github.com/jitbit/HtmlSanitizer/commit/af6d2a78877e7277cd01c825b7fb50edb5956963","label":"jitbit/HtmlSanitizer@af6d2a7"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/29xxx/CVE-2025-29771.json"},{"type":"ADVISORY","url":"https://github.com/jitbit/HtmlSanitizer/security/advisories/GHSA-vhv4-fh94-jm5x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29771"},{"type":"FIX","url":"https://github.com/jitbit/HtmlSanitizer/commit/af6d2a78877e7277cd01c825b7fb50edb5956963"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:17.217591034Z"}}