CVE Catalog

CVE-2026-5389

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

8th percentile - higher than 8% of all known CVEs

Summary

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.

Risk Assessment

The risk involves the possibility of executing malicious HTML in the context of Markdown rendering, which could lead to XSS attacks, data theft, or user session hijacking.

Recommendation

It is recommended to upgrade justhtml to version 1.13.0 or later and avoid rendering untrusted Markdown from untrusted sources.

Other vulnerabilities in justhtml

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS