CVE-2026-5160
published medium CVSS 4.0 · 5.1github.com/yuin/goldmark/renderer/html: Cross-site Scripting due to improper URL validation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | github.com/yuin/goldmark/renderer/html0 to < 1.7.17 | Affected | Not stated | snyk |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mcphostaarch64 | Advisory build | 0.34.0-160000.3.1 | OPENSUSE-SU-2026:21480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mcphostppc64le | Advisory build | 0.34.0-160000.3.1 | OPENSUSE-SU-2026:21480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mcphosts390x | Advisory build | 0.34.0-160000.3.1 | OPENSUSE-SU-2026:21480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mcphostx86_64 | Advisory build | 0.34.0-160000.3.1 | OPENSUSE-SU-2026:21480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mcphost-bash-completionnoarch | Advisory build | 0.34.0-160000.3.1 | OPENSUSE-SU-2026:21480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mcphost-fish-completionnoarch | Advisory build | 0.34.0-160000.3.1 | OPENSUSE-SU-2026:21480-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mcphost-zsh-completionnoarch | Advisory build | 0.34.0-160000.3.1 | OPENSUSE-SU-2026:21480-1 |
Show 16 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphostaarch64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphostppc64le | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphosts390x | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphostx86_64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-bash-completionaarch64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-bash-completionppc64le | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-bash-completions390x | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-bash-completionx86_64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-fish-completionaarch64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-fish-completionppc64le | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-fish-completions390x | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-fish-completionx86_64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-zsh-completionaarch64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-zsh-completionppc64le | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-zsh-completions390x | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mcphost-zsh-completionx86_64 | Advisory build | 0.34.0-9.1 | OPENSUSE-SU-2026:11366-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | snyk · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | github.com/yuin/goldmark/renderer/html | 0 to < 1.7.17 (affected · semver) | snyk · cna |
Weaknesses
1- CWE-79 Cross-site Scripting (XSS)
References
2Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 63fe9e481e4f176150eab5661e4ff43ff5f99b472dfdededf49ed66869215552
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record