CVEfocus › CVE database › CVE-2026-5160

CVE-2026-5160

CVSS 6.1 MediumEPSS 0.4% (higher than 22% of CVEs)Published 2026-04-15Updated 2026-04-15Assigner: snyk

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.

CWE-79

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
4Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-yuin-goldmarkFix pendingUBUNTU-CVE-2026-5160
Ubuntu 26.04golang-github-yuin-goldmarkUnder investigationUBUNTU-CVE-2026-5160
Ubuntu 25.10golang-github-yuin-goldmarkWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5160
Ubuntu 24.04golang-github-yuin-goldmarkUnder investigationUBUNTU-CVE-2026-5160
Ubuntu 22.04golang-github-yuin-goldmarkUnder investigationUBUNTU-CVE-2026-5160
Ubuntu 20.04golang-github-yuin-goldmarkFix pendingUBUNTU-CVE-2026-5160
Debian 14golang-github-yuin-goldmarkFixed1.8.2-1DEBIAN-CVE-2026-5160
Debian 13golang-github-yuin-goldmarkFix pendingDEBIAN-CVE-2026-5160
Debian 12golang-github-yuin-goldmarkFix pendingDEBIAN-CVE-2026-5160
Go librarygithub.com/yuin/goldmarkFixed1.7.17GO-2026-5320
Go librarygithub.com/yuin/goldmark/renderer/htmlFixed1.7.17GHSA-c97m-vxhj-p7j6

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.