SB20261203570 - Multiple vulnerabilities in Comrak
Published: December 3, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 vulnerabilities.
1) Inefficient Algorithmic Complexity (CVE-ID: N/A)
CWE-ID: CWE-407 - Inefficient Algorithmic Complexity
CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause excessive CPU consumption during Markdown parsing, potentially degrading service availability.
The vulnerability exists due to quadratic brace matching in Comrak's HEEx inline parser when processing Markdown containing unmatched opening braces. A remote attacker can submit untrusted Markdown to an application with the HEEx extension enabled to increase parsing cost.
2) Cross-site scripting (CVE-ID: N/A)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: 5.1 [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]
The vulnerability allows a remote attacker to inject active HTML or script-capable links into a rendered document.
The vulnerability exists due to improper escaping of link URL entities and inconsistent handling of carriage returns in Comrak's format_commonmark serializer when it writes Markdown from an untrusted syntax tree. A remote attacker can supply crafted link or code block content that is interpreted as active content when the serialized Markdown is reparsed and rendered with raw HTML enabled.
Remediation
Install update from vendor's website.