Skip to content

CVE-2025-4123 Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin

MediumCVSS 6.1 EPSS 97.4% ITW reported Public exploit Scanner template
Published
Updated
Exploit status
Exploitation reported (unconfirmed)
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirect. This allows attackers to redirect users to a website that hosts a frontend plugin that will execute arbitrary JavaScript. This vulnerability does not require editor permissions and if anonymous access is enabled, the XSS will work. If the Grafana Image Renderer plugin is installed, it is possible to exploit the open redirect to achieve a full read SSRF.

The default Content-Security-Policy (CSP) in Grafana will block the XSS though the connect-src directive.

Upgrade path

2 packages: 1 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
grafana github.com/grafana/grafana(Go) < 0.0.0-20250521183405-c7a690348df7; All versions 0.0.0-20250521183405-c7a690348df7 Partially fixed
grafana github.com/grafana/grafana < 10.4.18; = 10.4.18; = 11.2.9; = 11.3.6 +16 more 10.4.18, 10.4.19, 11.2.9, 11.2.10, 11.3.6, 11.3.7, 11.4.4, 11.4.5, 11.5.4, 11.5.5, 11.6.1, 11.6.2, 12.0.1 Fixed

Affected products

ProductAffected versionsFixed in
grafana github.com/grafana/grafana(Go) < 0.0.0-20250521183405-c7a690348df7 0.0.0-20250521183405-c7a690348df7
grafana github.com/grafana/grafana(Go) All versions No fix listed
grafana github.com/grafana/grafana >= 10.4.18+security-01, < 10.4.19 10.4.19
grafana github.com/grafana/grafana >= 11.2.9+security-01, < 11.2.10 11.2.10
grafana github.com/grafana/grafana >= 11.3.6+security-01, < 11.3.7 11.3.7
grafana github.com/grafana/grafana >= 11.4.4+security-01, < 11.4.5 11.4.5
grafana github.com/grafana/grafana >= 11.5.4+security-01, < 11.5.5 11.5.5
grafana github.com/grafana/grafana >= 11.6.1+security-01, < 11.6.2 11.6.2
grafana github.com/grafana/grafana >= 12.0.0+security-01, < 12.0.1 12.0.1
grafana github.com/grafana/grafana < 10.4.18 10.4.18
grafana github.com/grafana/grafana >= 11.2.0, < 11.2.9 11.2.9
grafana github.com/grafana/grafana >= 11.3.0, < 11.3.6 11.3.6
grafana github.com/grafana/grafana >= 11.4.0, < 11.4.4 11.4.4
grafana github.com/grafana/grafana >= 11.5.0, < 11.5.4 11.5.4
grafana github.com/grafana/grafana >= 11.6.0, < 11.6.1 11.6.1
grafana github.com/grafana/grafana = 10.4.18 No fix listed
grafana github.com/grafana/grafana = 11.2.9 No fix listed
grafana github.com/grafana/grafana = 11.3.6 No fix listed
grafana github.com/grafana/grafana = 11.4.4 No fix listed
grafana github.com/grafana/grafana = 11.5.4 No fix listed
grafana github.com/grafana/grafana = 11.6.1 No fix listed
grafana github.com/grafana/grafana = 12.0.0 No fix listed

References