7.6high
Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin
- Severity
- 7.6high CVSS:3.1 by GRAFANA
- Exploit likelihood
- 97.4% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GRAFANA
- Also known as
- GHSA-q53q-gxq9-mgrjBIT-GRAFANA-2025-4123GO-2025-3704
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
| Product or package | Versions | Reported by |
|---|---|---|
| Grafana Grafana | from 10.4.18+security-01 before 10.4.19, from 11.2.9+security-01 before 11.2.10, from 11.3.6+security-01 before 11.3.7, from 11.4.4+security-01 before 11.4.5, from 11.5.4+security-01 before 11.5.5, from 11.6.1+security-01 before 11.6.2, from 12.0.0+security-01 before 12.0.1, before 10.4.18 and 12 more | CVE List, NVD |
| github.com/grafana/grafana (Go) | before 0.0.0-20250521183405-c7a690348df7, all versions | GitHub Advisory Database, Go Vulnerability Database |
| grafana (Bitnami) | before 10.4.18, from 11.0.0 before 11.6.1, from 12.0.0 before 12.0.0 | Bitnami Vulnerability Database |
All scores
| GRAFANA | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| GitHub | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin in github.com/grafana/grafana.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/grafana/grafana before v0.0.0-20250521183405-c7a690348df7.
NVD (es)
Existe una vulnerabilidad de cross-site scripting (XSS) en Grafana causada por la combinación de un recorrido de ruta de cliente y una redirección abierta. Esto permite a los atacantes redirigir a los usuarios a un sitio web que aloja un complemento frontend que ejecuta JavaScript arbitrario. Esta vulnerabilidad no requiere permisos de editor y, si se habilita el acceso anónimo, el XSS funcionará. Si el complemento Grafana Image Renderer está instalado, es posible explotar la redirección abierta para obtener una lectura completa de SSRF. La política de seguridad de contenido (CSP) predeterminada en Grafana bloqueará el XSS mediante la directiva `connect-src`.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-4123 changed 2026-04-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q53q-gxq9-mgrj changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3704 changed 2026-06-19 | CC-BY-4.0 |
| NVD | CVE-2025-4123 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GRAFANA-2025-4123 changed 2026-09-10 | Apache-2.0 |