PT-2026-33004 · Goldmark · Goldmark
Catalin Iovita
·
Published
2026-04-15
·
Updated
2026-04-17
·
CVE-2026-5160
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
github.com/yuin/goldmark/renderer/html versions prior to 1.7.17
Description
Improper ordering of URL validation and normalization allows Cross-site Scripting (XSS). The renderer performs a prefix-based check using the
IsDangerousURL() function to validate link destinations before resolving HTML entities. An attacker can bypass protocol filtering by encoding dangerous schemes with HTML5 named character references, such as using javascript:alert(1), which results in arbitrary script execution when the application renders the URL.Recommendations
Update to version 1.7.17 or later.
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Goldmark