CVE-2026-5160 goldmark vulnerable to Cross-site Scripting (XSS)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
18 packages: 6 fixed, 12 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner gh(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| cbl-mariner telegraf(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| debian/golang-github-yuin-goldmark(Debian 12) | = 1.5.4-1; = 1.5.5-1; = 1.5.6-1; = 1.6.0-1 +7 more | No fix listed | No fix yet |
| debian/golang-github-yuin-goldmark(Debian 13) | = 1.7.4-1; = 1.7.13-1; = 1.8.2-1; = 1.8.2-2 +1 more | No fix listed | No fix yet |
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9(Red Hat openshift_custom_metrics_autoscaler 2) | All versions | No fix listed | No fix yet |
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel9(Red Hat openshift_custom_metrics_autoscaler 2) | All versions | No fix listed | No fix yet |
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9(Red Hat openshift_custom_metrics_autoscaler 2) | All versions | No fix listed | No fix yet |
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operator(Red Hat openshift_custom_metrics_autoscaler 2) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-yuin-goldmark(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-yuin-goldmark(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-yuin-goldmark(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-yuin-goldmark(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| azure linux gh(Azure Linux 3.0) | < 2.62.0-15 | 2.62.0-15 | Fixed |
| azure linux telegraf(Azure Linux 3.0) | < 1.31.0-19 | 1.31.0-19 | Fixed |
| debian/golang-github-yuin-goldmark(Debian 14) | < 1.8.2-1; = 1.7.4-1; = 1.7.13-1 | 1.8.2-1 | Fixed |
| yuin github.com/yuin/goldmark | < 1.7.17 | 1.7.17 | Fixed |
| yuin github.com/yuin/goldmark(Go) | < 1.7.17 | 1.7.17 | Fixed |
| yuin github.com/yuin/goldmark/renderer/html(Go) | < 1.7.17 | 1.7.17 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| yuin github.com/yuin/goldmark/renderer/html(Go) | < 1.7.17 | 1.7.17 |
| cbl-mariner gh(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux telegraf(Azure Linux:3.0) | < 1.31.0-19 | 1.31.0-19 |
| azure linux gh(Azure Linux:3.0) | < 2.62.0-15 | 2.62.0-15 |
| cbl-mariner telegraf(CBL-Mariner:2.0) | All versions | No fix listed |
| yuin github.com/yuin/goldmark(Go) | < 1.7.17 | 1.7.17 |
| debian/golang-github-yuin-goldmark(Debian:12) | All versions | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.5.4-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.5.5-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.5.6-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.6.0-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.7.0-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.7.1-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.7.13-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.7.4-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.8.2-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:12) | = 1.8.2-2 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:13) | All versions | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:13) | = 1.7.13-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:13) | = 1.7.4-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:13) | = 1.8.2-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:13) | = 1.8.2-2 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:14) | < 1.8.2-1 | 1.8.2-1 |
| debian/golang-github-yuin-goldmark(Debian:14) | = 1.7.13-1 | No fix listed |
| debian/golang-github-yuin-goldmark(Debian:14) | = 1.7.4-1 | No fix listed |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9(Red Hat:openshift_custom_metrics_autoscaler:2) | All versions | No fix listed |
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel9(Red Hat:openshift_custom_metrics_autoscaler:2) | All versions | No fix listed |
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9(Red Hat:openshift_custom_metrics_autoscaler:2) | All versions | No fix listed |
| redhat/custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operator(Red Hat:openshift_custom_metrics_autoscaler:2) | All versions | No fix listed |
| ubuntu/golang-github-yuin-goldmark(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/golang-github-yuin-goldmark(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-yuin-goldmark(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-github-yuin-goldmark(Ubuntu:26.10) | All versions | No fix listed |
| yuin github.com/yuin/goldmark | < 1.7.17 | 1.7.17 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- security.snyk.io mitigation third-party-advisory
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- github.com vendor-advisory
- Debian Security Tracker CVE-2026-5160 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2458616 issue-tracking
- www.cve.org
- Ubuntu CVE tracker vendor-advisory