Vulnerabilities · 2025 · Grafana
CVE-2025-4123
Grafana vulnerability
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 products
Grafana. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Grafana runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fix · Vendor Advisory
- grafana.com/security/security-advisories/cve-2025-4123/ · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2025-4123
- grafana.com/security/security-advisories/cve-2025-4123
- github.com/grafana/grafana/commit/c7a690348df761d41b659224cbc50a46a0c0e4cc
- pkg.go.dev/vuln/GO-2025-3702
- grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fix
- github.com/advisories/GHSA-q53q-gxq9-mgrj
- nvd.nist.gov/vuln/detail/CVE-2025-4123
- cve.org/CVERecord?id=CVE-2025-4123
More vulnerabilities in Grafana products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.