Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 84%

CVE-2026-5160: Cross-site Scripting (XSS) in github.com/yuin/goldmark/renderer/html

0
Medium
VulnerabilityCVE-2026-5160cvecve-2026-5160
Published: Wed Apr 15 2026 (04/15/2026, 05:00:01 UTC)
Source: CVE Database V5
Product: github.com/yuin/goldmark/renderer/html

Description

A Cross-site Scripting (XSS) vulnerability exists in github. com/yuin/goldmark/renderer/html versions before 1. 7. 17. The issue arises from improper ordering of URL validation and normalization, allowing attackers to bypass protocol filtering by encoding dangerous schemes with HTML5 named character references. This can lead to arbitrary script execution in applications rendering the affected URLs. The vulnerability has a medium severity with a CVSS score of 5. 1. No official patch or remediation guidance is currently confirmed.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/22/2026, 06:35:42 UTC

Technical Analysis

The vulnerability in github.com/yuin/goldmark/renderer/html occurs because the renderer validates link destinations using a prefix-based check (IsDangerousURL) before resolving HTML entities. This flawed sequence allows an attacker to encode dangerous URL schemes such as 'javascript:' using HTML5 named character references (e.g., 'javascript:'), which bypasses the validation check. Consequently, this enables Cross-site Scripting (XSS) attacks by injecting arbitrary scripts into contexts where the URL is rendered. The issue affects versions prior to 1.7.17 and is classified with a CVSS 4.0 score of 5.1, indicating medium severity.

Potential Impact

Successful exploitation can lead to arbitrary script execution in the context of applications that render URLs using the vulnerable goldmark renderer. This may allow attackers to execute malicious scripts, potentially leading to session hijacking, defacement, or other client-side impacts. However, there is no indication of known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the vendor's repository or advisories for updates. In the meantime, consider applying input sanitization or additional URL validation layers externally if feasible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
snyk
Date Reserved
2026-03-30T14:14:48.647Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69df264b82d89c981f697e7f

Added to database: 4/15/2026, 5:46:51 AM

Last enriched: 4/22/2026, 6:35:42 AM

Last updated: 5/30/2026, 2:32:54 PM

Views: 166

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses