CVE-2025-4123
JSON

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 packageVersionsReported by
Grafana Grafanafrom 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 moreCVE List, NVD
github.com/grafana/grafana (Go)before 0.0.0-20250521183405-c7a690348df7, all versionsGitHub 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.0Bitnami Vulnerability Database

All scores

GRAFANA7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
GitHub7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-79CWE-601

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

https://grafana.com/security/security-advisories/cve-2025-4123/advisory, vendor-advisory
https://grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fixes-for-cve-2025-4123-and-cve-2025-3580/advisory, mitigation, release-notes, vendor-advisory
https://www.exploit-db.com/exploits/52491web
https://nvd.nist.gov/vuln/detail/CVE-2025-4123advisory, web
https://github.com/grafana/grafana/commit/c7a690348df761d41b659224cbc50a46a0c0e4ccfix, web
https://github.com/grafana/grafanapackage
https://grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fixes-for-cve-2025-4123-and-cve-2025-3580web
https://grafana.com/security/security-advisories/cve-2025-4123web
https://pkg.go.dev/vuln/GO-2025-3702web
https://github.com/advisories/GHSA-q53q-gxq9-mgrjadvisory

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-4123 changed 2026-04-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-q53q-gxq9-mgrj changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3704 changed 2026-06-19CC-BY-4.0
NVDCVE-2025-4123 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GRAFANA-2025-4123 changed 2026-09-10Apache-2.0