CVE-2026-5160: Cross-site Scripting (XSS) in github.com/yuin/goldmark/renderer/html
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 Analysis
Technical Summary
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.
CVE-2026-5160: Cross-site Scripting (XSS) in 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.