GitHub Advisoryadvisory · Go

GHSA-q53q-gxq9-mgrj Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin

HIGH Published 2025-05-22 Modified 2026-05-06 Official page ↗
Aliases
CVE-2025-4123
Ecosystem
Go
Packages
github.com/grafana/grafana
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
Weaknesses
CWE-79
Reviewed
2025-05-22

Affected packages

• Go github.com/grafana/grafana: < 0.0.0-20250521183405-c7a690348df7 → fixed in 0.0.0-20250521183405-c7a690348df7

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.

Related

Alias · CVE (1)

  • CVE-2025-4123 A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirect. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References