Vulnerability · Published May 22, 2025 · Assigned by GRAFANA
CVE-2025-4123
High 7.6
In plain English
A high-severity cross-site scripting in Grafana from Grafana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 97.1% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | grafana | 9.2.10-23.el8_10 | ALSA-2025:7894 |
| AlmaLinux:9 | grafana | 10.2.6-13.el9_6 | ALSA-2025:7893 |
| AlmaLinux:8 | grafana-selinux | 9.2.10-23.el8_10 | ALSA-2025:7894 |
| AlmaLinux:9 | grafana-selinux | 10.2.6-13.el9_6 | ALSA-2025:7893 |
| Go | github.com/grafana/grafana | no fix listed | GO-2025-3704 |
| Go | github.com/grafana/grafana | 0.0.0-20250521183405-c7a690348df7 | GHSA-q53q-gxq9-mgrj |
| Rocky Linux:10 | grafana | 0:10.2.6-17.el10_0 | RLSA-2025:7892 |
| Rocky Linux:8 | grafana | 0:9.2.10-23.el8_10 | RLSA-2025:7894 |
| Rocky Linux:9 | grafana | 0:10.2.6-13.el9_6 | RLSA-2025:7893 |
Affected products (as reported)
Weakness: CWE-79, CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L