Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-5vp3-3cg6-2rq
- https://www.vulncheck.com/advisories/justhtml-before-xss-via-code-fence-breakout
- https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-5vp3-3cg6-2rq
FAQ
What is CVE-2026-5389?
CVE-2026-5389 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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 saniti...
How severe is CVE-2026-5389?
CVE-2026-5389 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-5389?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.