Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-5389 EUVD-2026-64653GHSA-5vp3-3cg6-2rq3GHSA-q3jf-9wv7-p29w

justhtml before 1.13.0 XSS via code fence breakout

Published Aug 23, 2026 · Updated Aug 24, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
EmilStenstrom justhtml < 1.13.0 1.13.0

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI justhtml < 1.13.0 1.13.0 GHSA-5vp3-3cg6-2rq3

References