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…

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/15/2026, 06:01:48 UTC

Technical Analysis

The vulnerability in github.com/yuin/goldmark/renderer/html prior to version 1.7.17 is due to the renderer validating link destinations using a prefix-based check (IsDangerousURL) before resolving HTML entities. This improper sequence allows attackers to encode dangerous URL schemes, such as 'javascript:', using HTML5 named character references (e.g., 'javascript:'), which bypasses the validation and leads to Cross-site Scripting (XSS). This flaw enables arbitrary script execution in the context of applications that render these URLs.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary scripts in the context of the affected application, potentially leading to session hijacking, defacement, or other malicious actions within the user's browser. The vulnerability is rated medium severity with a CVSS score of 5.1. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying input sanitization or output encoding on URLs rendered by the application to mitigate potential XSS risks.

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/15/2026, 6:01:48 AM

Last updated: 4/15/2026, 7:50:29 AM

Views: 8

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