CVE-2026-5389 PUBLISHED

justhtml before 1.13.0 XSS via code fence breakout

Assigner: VulnCheck
Reserved: 01.04.2026 Published: 23.08.2026 Updated: 23.08.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
CVSS Score: 5.1

Product Status

Vendor EmilStenstrom
Product justhtml
Versions Default: unaffected
  • affected from 0 to 1.13.0 (excl.)
  • Version 1.13.0 is unaffected

Credits

  • AlfinJ0se reporter

References

Problem Types

  • Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) CWE