Live threats

All CVEs / Yuin

CVE-2026-5160Yuin Goldmark

Medium 5.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Goldmark.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
yuingoldmark< 1.7.17

Official advisories

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.