GHSA-c97m-vxhj-p7j6 · Severity: medium · Ecosystem: go — goldmark vulnerable to Cross-site Scripting (XSS)
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.
Conclusion & alert: CVE-2026-5160 is rated Low Risk (25.8/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.05%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-17 | 0.04% | 0.05% | +0.01% |
| 2 | 2026-04-15 | — | 0.04% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.1 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-c97m-vxhj-p7j6 · Severity: medium · Ecosystem: go — goldmark vulnerable to Cross-site Scripting (XSS)
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-5160 not yet assigned priority: Debian including 1 source packages (golang-github-yuin-goldmark), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. | https://security-tracker.debian.org/tracker/CVE-2026-5160 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2026-5160 |
ubuntu
|
medium | CVE-2026-5160 medium priority: Ubuntu including 1 source packages (golang-github-yuin-goldmark), 6 status rows across 6 suites (focal, jammy, noble, questing, resolute, upstream): needs-triage 5, released 1. | https://ubuntu.com/security/CVE-2026-5160 |
| URL | Tags |
|---|---|
| https://github.com/yuin/goldmark/commit/cb46bbc4eca29d55aa9721e04ad207c23ccc44f9 | Patch |
| https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMYUINGOLDMARKRENDERERHTML-15838406 | Mitigation Third Party Advisory |