Cross-site scripting in Comrak - #VU173135

 

Cross-site scripting in Comrak - #VU173135

Published: December 3, 2026


Vulnerability identifier: #VU173135
CSH Severity: Medium
CVSS v4: 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]
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Comrak

Remediation

Install security update from vendor's website.

Comrak - update to 1.3.0

External References

Related Security Bulletins