CVE-2026-5160Yuin Goldmark
Medium 5.1 No auth needed
Follow: this CVE · Yuin · Yuin Goldmark We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 4.0
- 5.1
- EPSS
- —
- Auth required
- No
- Published
- Apr 15, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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
- Apply the vendor's security update for Goldmark.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/yuin/goldmark |
< 1.7.17 |
1.7.17 |
go get github.com/yuin/goldmark@v1.7.17 |
| Go | github.com/yuin/goldmark/renderer/html |
< 1.7.17 |
1.7.17 |
go get github.com/yuin/goldmark/renderer/html@v1.7.17 |
Per OSV / GitHub Advisories (GO-2026-5320, GHSA-c97m-vxhj-p7j6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yuin | goldmark | < 1.7.17 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- Security update for mcphost · SUSE · SUSE-SU-2026:22994-1 · Jul 30, 2026 Critical
- Security update for mcphost · SUSE · openSUSE-SU-2026:21480-1 · Jul 30, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- security.snyk.io Mitigation Third Party Advisory