
CVE catalog
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 val
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.29% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-yuin-goldmark | sid | 1.8.2-2 | fixed |
| Debian | golang-github-yuin-goldmark | forky | 1.8.2-2 | fixed |
| Debian | golang-github-yuin-goldmark | trixie | 1.7.4-1 | vulnerable |
| Debian | golang-github-yuin-goldmark | bookworm | 1.5.4-1 | vulnerable |
| Cpe | golang-github-yuin-goldmark | Not reported | Not reported | vulnerable |
| Cpe | goldmark | Not reported | 1.7.17 | fixed |
| Go | github.com/yuin/goldmark | Not reported | 1.7.17 | fixed |
| Opensuse | mcphost | tumbleweed | 0.34.0-9.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-yuin-goldmark | source | sid | 1.8.2-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-github-yuin-goldmark | source | forky | 1.8.2-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-github-yuin-goldmark | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | golang-github-yuin-goldmark | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | goldmark | cpe | Not reported | 1.7.17 | Not reported | Not reported | Not reported |
| Go | github.com/yuin/goldmark | Go | Not reported | 1.7.17 | Not reported | Not reported | Not reported |
| Opensuse | mcphost | rpm | tumbleweed | 0.34.0-9.1 | Not reported | OPENSUSE-SU-2026:11366-1 | Not reported |
Notes
[trixie] golang-github-yuin-goldmark: Minor issue [bookworm] golang-github-yuin-goldmark: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [golang-github-yuin-goldmark-dev]Affected
Source package: [golang-github-yuin-goldmark]
Details (2)
1.5.4-1· all · bookwormAffected
nvd · golang-github-yuin-goldmark · debian · bookworm; nvd · golang-github-yuin-goldmark · debian · 12
1.5.4-1· all · bookwormAffected
nvd · golang-github-yuin-goldmark · debian · bookworm; nvd · golang-github-yuin-goldmark · debian · 12
[Debian 13 (Trixie)]
- [golang-github-yuin-goldmark-dev]Affected
Source package: [golang-github-yuin-goldmark]
Details (2)
1.7.4-1· all · trixieAffected
nvd · golang-github-yuin-goldmark · debian · 13
1.7.4-1· all · trixieAffected
nvd · golang-github-yuin-goldmark · debian · 13
[openSUSE Tumbleweed]
- [mcphost-bash-completion]Unknown
Source package: [mcphost]
Details (1)
0.34.0-9.2· noarch · tumbleweedUnknown · Fixed:
0.34.0-9.1Version impact unknown
nvd · mcphost · opensuse · tumbleweed
- [mcphost-fish-completion]Unknown
Source package: [mcphost]
Details (1)
0.34.0-9.2· noarch · tumbleweedUnknown · Fixed:
0.34.0-9.1Version impact unknown
nvd · mcphost · opensuse · tumbleweed
- [mcphost-zsh-completion]Unknown
Source package: [mcphost]
Details (1)
0.34.0-9.2· noarch · tumbleweedUnknown · Fixed:
0.34.0-9.1Version impact unknown
nvd · mcphost · opensuse · tumbleweed
- [mcphost]Fixed
Source package: [mcphost]
Details (1)
0.34.0-9.2· x86_64 · tumbleweedFixed · Fixed:
0.34.0-9.1nvd · mcphost · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11366-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-5160]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-5160]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11366-1]
- [https://pkg.go.dev/vuln/GO-2026-5320]
- [https://security-tracker.debian.org/tracker/CVE-2026-5160]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5160.json]
[Debian Security Tracker] · [FIRST EPSS] · [Go Vulnerability Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]