CVE-2026-5389

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.
Configurations

No configuration.

History

12 Oct 2026, 16:10

Type Values Removed Values Added
Summary
  • (es) Las versiones de justhtml anteriores a la 1.13.0 contienen una vulnerabilidad de cross-site scripting en la función to_markdown() al serializar contenido pre controlado por el atacante. Los atacantes pueden colocar backticks dentro de elementos pre saneados para escapar de cercas de código de longitud fija, permitiendo que se ejecute HTML sin procesar cuando el Markdown generado es renderizado por renderizadores estilo CommonMark o GFM.

Information

Published : 2026-08-23 14:16

Updated : 2026-10-12 16:10


NVD link : CVE-2026-5389

Mitre link : CVE-2026-5389

CVE.ORG link : CVE-2026-5389


JSON object : View

Products Affected

No product.

CWE
CWE-80

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