{"id":"CVE-2026-5751","published":"2026-08-23T13:34:10Z","modified":"2026-08-24T19:03:33Z","title":"justhtml before 1.14.0 Mutation XSS via custom sanitization policies","vendor":"EmilStenstrom","product":"justhtml","tier":"tail","description":{"text":"justhtml versions 1.13.0 and earlier contain a parser-differential / mutation cross-site scripting (mXSS) vulnerability when using a custom SanitizationPolicy that preserves foreign namespaces (e.g., drop_foreign_namespaces=False with allowlisted SVG/MathML elements or raw-text containers such as <style>). Specially crafted input can sanitize into markup that appears safe but becomes unsafe when re-parsed by a browser or another HTML parser, allowing markup injection. The default safe configuration (sanitize=True) is not affected. Fixed in 1.14.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00263,"percentile":0.11119,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-r758-8hxw-4845","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/justhtml-before-mutation-xss-via-custom-sanitization-policies","tags":["third-party-advisory"]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":2.22},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"emilstenstrom","affectedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["< 1.14.0"]}],"fixedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["1.14.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-24T19:03:25.322496Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-64654","exploited":false,"provenance":"source"}}