{ "schema_version": "1.4.0", "id": "GHSA-vhv4-fh94-jm5x", "modified": "2025-03-14T21:41:26Z", "published": "2025-03-14T19:54:52Z", "aliases": [ "CVE-2025-29771" ], "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", "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" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "@jitbit/htmlsanitizer" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "2.0.3" } ] } ] } ], "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" } ], "database_specific": { "cwe_ids": [ "CWE-79" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2025-03-14T19:54:52Z", "nvd_published_at": "2025-03-14T19:15:48Z" } }