{"id":"CVE-2026-5160","published":"2026-04-15T05:00:01Z","modified":"2026-04-15T18:07:10Z","title":"Versions of the package github.com/yuin/goldmark/renderer/html before 1.7.17 are vulnerable to Cross-site Scripting…","vendor":null,"product":null,"tier":"tail","description":{"text":"Versions of the package github.com/yuin/goldmark/renderer/html before 1.7.17 are vulnerable to Cross-site Scripting (XSS) due to improper ordering of URL validation and normalization. The renderer validates link destinations using a prefix-based check (IsDangerousURL) before resolving HTML entities. This allows an attacker to bypass protocol filtering by encoding dangerous schemes using HTML5 named character references. For example, a payload such as javascript&colon;alert(1) is not recognized as dangerous during validation, leading to arbitrary script execution in the context of applications that render the URL.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00292,"percentile":0.22274,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMYUINGOLDMARKRENDERERHTML-15838406","tags":[]},{"url":"https://github.com/yuin/goldmark/commit/cb46bbc4eca29d55aa9721e04ad207c23ccc44f9","tags":[]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":4.45},{"name":"CVSS severity","points":4.27}]},"affectedVersions":[{"vendor":"n/a","product":"github.com/yuin/goldmark/renderer/html","versions":["< 1.7.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-15T18:07:02.033634Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/yuin/goldmark/renderer/html","vulnerableRanges":["<1.7.17"],"patched":["1.7.17"],"from":["GHSA-c97m-vxhj-p7j6"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/yuin/goldmark","vulnerableRanges":["<1.7.17"],"patched":["1.7.17"],"from":["GO-2026-5320"],"provenance":"source"}],"summary":{"text":"The Go package github.com/yuin/goldmark/renderer/html, before version 1.7.17, checks link destinations for dangerous URLs before resolving HTML entities, so the protocol filter can be bypassed. An attacker can supply a link encoded with HTML5 named character references, such as javascript&colon;alert(1), which is not caught by the check and is rendered as an active script. Exploitation requires that a victim interacts with the rendered link (for example by clicking it), and the attack works against applications that render attacker-supplied Markdown links through this renderer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:31Z"},"euvd":{"id":"EUVD-2026-22836","exploited":false,"provenance":"source"}}