Read the docs
TI-2026-04504 Aliases CVE-2026-5160GHSA-c97m-vxhj-p7j6

Cross-site scripting in github.com/yuin/goldmark/renderer/html

Priority LOW 23CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Active
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · Low · None
Fix status
Partial Red Hat: 1 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00287 21st percentileScored 2026-11-07
Fix Partial github.com/yuin/goldmark/renderer/html: 1.7.17github.com/yuin/goldmark/renderer/html (Go): 1.7.17Red Hat: 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—github.com/yuin/goldmark/renderer/htmlbefore 1.7.171.7.17Patch availableCNA
—github.com/yuin/goldmark/renderer/html (Go)before 1.7.171.7.17Patch availableGHSA-c97m-vxhj-p7j6
  • github.com/yuin/goldmark/renderer/html Vendor— Affected before 1.7.17 Fixed in 1.7.17 Patch available CNA
  • github.com/yuin/goldmark/renderer/html (Go) Vendor— Affected before 1.7.17 Fixed in 1.7.17 Patch available GHSA-c97m-vxhj-p7j6

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:yuin:goldmark:*:*:*:*:*:*:*:*before 1.7.17VulnerableYuin
  • cpe:2.3:a:yuin:goldmark:*:*:*:*:*:*:*:* Versions before 1.7.17 Vulnerable ·Yuin

Remediation

  • Fix · CNA github.com/yuin/goldmark/renderer/html Fixed in 1.7.17
  • Fix · GHSA-c97m-vxhj-p7j6 github.com/yuin/goldmark/renderer/html (Go) Fixed in 1.7.17 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Custom Metric Autoscaler operator for Red Hat OpenshiftAffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-5160
  2. 2026-10-03 Alias added: GHSA-c97m-vxhj-p7j6

References

Sources