XSS Vulnerability in Goldmark HTML Renderer by Yuin
CVE-2026-5160
5.1MEDIUM
What is CVE-2026-5160?
The Goldmark HTML renderer, prior to version 1.7.17, exhibits a Cross-site Scripting (XSS) vulnerability resulting from improper URL validation and normalization. An attacker can exploit this weakness by encoding dangerous URL schemes using HTML5 named character references, allowing for the execution of arbitrary scripts in applications that render URLs. This occurs because the renderer performs validation through a prefix-based check before properly resolving HTML entities, enabling attacks such as javascript:alert(1) to be executed in unsuspecting contexts.
Affected Version(s)
github.com/yuin/goldmark/renderer/html 0 < 1.7.17
References
CVSS V4
Score:
5.1
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Catalin Iovita (Snyk Security Research)
