{"id":"CVE-2026-8630","published":"2026-08-23T13:34:14Z","modified":"2026-08-26T18:07:00Z","title":"justhtml before 1.12.0 Mutation XSS via Raw Text Elements","vendor":"EmilStenstrom","product":"justhtml","tier":"tail","description":{"text":"justhtml before 1.12.0 (versions <= 1.11.0) contains a mutation cross-site scripting (mXSS) vulnerability in the serialization of raw-text elements such as <style> and <script>. When a DOM tree is processed by sanitize_dom() using a custom policy that keeps these elements, text nodes inside them are serialized literally without escaping, allowing attacker-controlled text containing the matching closing tag sequence to break out of the raw-text context and inject arbitrary HTML into the serialized output. The default sanitization policy is not affected because it drops the contents of style and script.","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.18448,"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-qvc2-mg72-jjhx","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/justhtml-before-mutation-xss-via-raw-text-elements","tags":["third-party-advisory"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":3.69},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"emilstenstrom","affectedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["< 1.12.0"]}],"fixedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["1.12.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-26T18:06:49.331214Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-64660","exploited":false,"provenance":"source"}}