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 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.
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.
CVSS v4.0
Score 5.1medium
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 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.