{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-29771","id":"CVE-2025-29771","title":"HtmlSanitizer vulnerable to XSS when used with contentEditable","description":"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.","descriptionLong":"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","updated":"2026-10-28T02:30:52.147439909Z","reserved":"2025-03-11T14:23:00.474Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["jitbit HtmlSanitizer"],"affectedProducts":[{"vendor":"jitbit","product":"HtmlSanitizer","defaultStatus":null,"versions":[{"version":"< 2.0.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@jitbit/htmlsanitizer","purl":"pkg:npm/%40jitbit/htmlsanitizer","ranges":["<2.0.3"],"fixed":["2.0.3"],"advisory":"GHSA-vhv4-fh94-jm5x"}],"cwes":["CWE-79"],"aliases":["GHSA-vhv4-fh94-jm5x"],"references":[{"url":"https://github.com/jitbit/HtmlSanitizer/security/advisories/GHSA-vhv4-fh94-jm5x","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/jitbit/HtmlSanitizer/commit/af6d2a78877e7277cd01c825b7fb50edb5956963","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/29xxx/CVE-2025-29771.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29771","tags":["advisory"]},{"url":"https://github.com/jitbit/HtmlSanitizer","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00404,"epssPercentile":0.35374,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-29771","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29771","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-29771","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vhv4-fh94-jm5x","ok":true,"note":"GHSA-vhv4-fh94-jm5x"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-29771","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}