{"id":"CVE-2026-5389","published":"2026-08-23T13:34:09Z","modified":"2026-08-24T18:15:49Z","title":"justhtml before 1.13.0 XSS via code fence breakout","vendor":"EmilStenstrom","product":"justhtml","tier":"tail","description":{"text":"justhtml versions before 1.13.0 contain a cross-site scripting vulnerability in the to_markdown() function when serializing attacker-controlled pre content. Attackers can place backticks inside sanitized pre elements to break out of fixed-length code fences, allowing raw HTML to execute when the generated Markdown is rendered by CommonMark or GFM-style renderers.","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.0023,"percentile":0.14089,"provenance":"source"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-5vp3-3cg6-2rq3","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/justhtml-before-xss-via-code-fence-breakout","tags":["third-party-advisory"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":2.82},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"emilstenstrom","affectedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["< 1.13.0"]}],"fixedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["1.13.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-24T18:15:22.523698Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-64653","exploited":false,"provenance":"source"}}