CVE-2026-5160
Last modified
CVE-2026-5160 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Yuin | Goldmark | < 1.7.17 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-5160?
How severe is CVE-2026-5160?
How do I fix CVE-2026-5160?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-51583An issue in usememos through v0.30.0 allows a remote authent…
- CVE-2026-51584An issue in usememos v0.27.1 allows a remote attacker to ach…
- CVE-2026-5159The Royal Addons for Elementor plugin for WordPress is vulne…6.4
- CVE-2026-51597MERCURY MIPC252W IP camera v1.0.5 Build 230306 Rel.79931n do…9.1
- CVE-2026-51598An input validation vulnerability in the RTSP service of MER…6.5
- CVE-2026-51599An insufficient input validation vulnerability in the RTSP s…9.8
- CVE-2026-51600Tenda CP3 V3.0 firmware V31.1.9.91 does not validate the Con…7.5
- CVE-2026-51601Tenda CP3 V3.0 firmware V31.1.9.91 contains a stack-based bu…7.5
- CVE-2026-51602A stack-based buffer overflow vulnerability in the RTSP serv…7.5
- CVE-2026-51603A stack-based buffer overflow vulnerability in the RTSP serv…7.5
- CVE-2026-51604A stack-based buffer overflow vulnerability in the RTSP serv…7.5
- CVE-2026-51605A stack-based buffer overflow vulnerability in the RTSP serv…7.5
Are you affected by CVE-2026-5160?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
