CVE-2026-5160
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:alert(1) is not recognized as dangerous during validation, leading to arbitrary script execution in the context of applications that render the URL.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-yuin-goldmark | Fix pending | UBUNTU-CVE-2026-5160 | |
| Ubuntu 26.04 | golang-github-yuin-goldmark | Under investigation | UBUNTU-CVE-2026-5160 | |
| Ubuntu 25.10 | golang-github-yuin-goldmark | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5160 | |
| Ubuntu 24.04 | golang-github-yuin-goldmark | Under investigation | UBUNTU-CVE-2026-5160 | |
| Ubuntu 22.04 | golang-github-yuin-goldmark | Under investigation | UBUNTU-CVE-2026-5160 | |
| Ubuntu 20.04 | golang-github-yuin-goldmark | Fix pending | UBUNTU-CVE-2026-5160 | |
| Debian 14 | golang-github-yuin-goldmark | Fixed | 1.8.2-1 | DEBIAN-CVE-2026-5160 |
| Debian 13 | golang-github-yuin-goldmark | Fix pending | DEBIAN-CVE-2026-5160 | |
| Debian 12 | golang-github-yuin-goldmark | Fix pending | DEBIAN-CVE-2026-5160 | |
| Go library | github.com/yuin/goldmark | Fixed | 1.7.17 | GO-2026-5320 |
| Go library | github.com/yuin/goldmark/renderer/html | Fixed | 1.7.17 | GHSA-c97m-vxhj-p7j6 |
What the vendor says
As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- github.com/yuin/goldmark/renderer/html: affected: before 1.7.17; fixed in
1.7.17
References
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMYUINGOLDMARKRENDERERHTML-15838406
- https://github.com/yuin/goldmark/commit/cb46bbc4eca29d55aa9721e04ad207c23ccc44f9
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.