{"id":"GHSA-vhv4-fh94-jm5x","summary":"JS Html Sanitizer allows XSS when used with contentEditable","details":"### Impact\nXSS 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.\n\n### Patches\nPatched in version 2.0.3","aliases":["CVE-2025-29771"],"modified":"2025-03-14T21:41:26Z","published":"2025-03-14T19:54:52Z","database_specific":{"github_reviewed_at":"2025-03-14T19:54:52Z","nvd_published_at":"2025-03-14T19:15:48Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","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":"WEB","url":"https://github.com/jitbit/HtmlSanitizer/commit/af6d2a78877e7277cd01c825b7fb50edb5956963"},{"type":"PACKAGE","url":"https://github.com/jitbit/HtmlSanitizer"}],"affected":[{"package":{"name":"@jitbit/htmlsanitizer","ecosystem":"npm","purl":"pkg:npm/%40jitbit/htmlsanitizer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-vhv4-fh94-jm5x/GHSA-vhv4-fh94-jm5x.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}