Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | github.com/yuin/goldmark/renderer/html | < 1.7.17 | 1.7.17 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | golang-github-yuin-goldmark | 1.8.2-1 | — |
| Debian 13 | golang-github-yuin-goldmark | No fix yet | — |
| Debian 12 | golang-github-yuin-goldmark | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | golang-github-yuin-goldmark | No fix yet | — |
| Ubuntu 26.04 LTS | golang-github-yuin-goldmark | No fix yet | — |
| Ubuntu 25.10 | golang-github-yuin-goldmark | No fix yet | — |
| Ubuntu 24.04 LTS | golang-github-yuin-goldmark | No fix yet | — |
| Ubuntu 22.04 LTS | golang-github-yuin-goldmark | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | golang-github-yuin-goldmark | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 6.2 | mcphost | 0.34.0-160000.3.1 | SUSE-SU-2026:22994-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mcphost | 0.34.0-9.1 | openSUSE-SU-2026:11366-1 |
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
| openSUSE Leap 16.0 | mcphost | 0.34.0-160000.3.1 | openSUSE-SU-2026:21480-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | gh | 2.62.0-15 | — |
| Azure Linux 3 | telegraf | 1.31.0-19 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | crossplane-provider-aws-ec2-compat +2 | 2.7.0-r6 | — |
| Wolfi rolling | crossplane-provider-aws-eks +6 | 2.6.0-r6 | — |
| Wolfi rolling | crossplane-provider-aws-iam +3 | 2.6.0-r7 | — |
| Wolfi rolling | crossplane-provider-aws-s3 +8 | 2.6.0-r5 | — |
| Wolfi rolling | crossplane-provider-azure-storage | 2.6.0-r9 | — |
| Wolfi rolling | crossplane-provider-family-azure +1 | 2.6.0-r8 | — |
| Wolfi rolling | crossplane-provider-keycloak | 2.24.0-r3 | — |
| Wolfi rolling | dagger | 0.20.8-r14 | — |
| Wolfi rolling | glab | 1.109.0-r1 | — |
| Wolfi rolling | glow | 2.1.2-r5 | — |
| Wolfi rolling | gptscript | 0.9.9-r439 | — |
| Wolfi rolling | mattermost-11.1 | 11.10.0-r0 | — |
| Wolfi rolling | mattermost-11.5 +1 | No fix yet | — |
| Wolfi rolling | mods | 1.8.1-r16 | — |
| Wolfi rolling | nuclei | 3.11.0-r2 | — |
| Wolfi rolling | osv-scanner | 2.4.0-r5 | — |
| Wolfi rolling | src | 7.6.0-r0 | — |
| Wolfi rolling | vale | 3.15.1-r3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/yuin/goldmark | < 1.7.17 | 1.7.17 | GO-2026-5320 |
| Go | github.com/yuin/goldmark/renderer/html | < 1.7.17 | 1.7.17 | GHSA-c97m-vxhj-p7j6 |
Advisories 4
- SUSE-SU-2026:22994-1 Security update for mcphost SUSE / openSUSE Security Updates · Aug 4, 2026
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026
- openSUSE-SU-2026:21480-1 Security update for mcphost SUSE / openSUSE Security Updates · Jul 31, 2026
- openSUSE-SU-2026:11366-1 mcphost-0.34.0-9.1 on GA media SUSE / openSUSE Security Updates · Jul 25, 2026