ZeroHour

CVE-2025-4123

mass

Unauthenticated XSS in Grafana via client path traversal and open redirect

CVSS 3.1
6.1 medium
EPSS
97%p100
Published
()
Modified
AI analysis

CVE-2025-4123 is a cross-site scripting flaw (CWE-79) in Grafana that results from combining a client-side path traversal with an open redirect (CWE-601). An attacker crafts a link that redirects a Grafana user to a site hosting a malicious frontend plugin that executes arbitrary JavaScript in the context of the victim's Grafana session; the attack requires no editor or special privileges and works against anonymous users when anonymous access is enabled. If the Grafana Image Renderer plugin is installed, the same open redirect can be escalated to a full-read SSRF, letting the attacker read content from internal services reachable from the Grafana server. Grafana's default Content-Security-Policy blocks the XSS via its connect-src directive, so risk concentrates on internet-facing instances running anonymous access, relaxed/custom CSP, or the Image Renderer plugin; public reporting indicates over a third of Grafana instances are exposed to the flaw. No public proof-of-concept or confirmed in-the-wild exploitation is known yet, but EPSS assigns a 97% probability of exploitation within 30 days.

What to do: Upgrade internet-facing Grafana instances to the patched release for your release line per Grafana's security advisory for CVE-2025-4123 (the source data does not include fixed version numbers, so consult the advisory), prioritizing instances with anonymous access enabled. Keep Grafana's default Content-Security-Policy in place, since its connect-src directive blocks the XSS, and remove or network-restrict the Grafana Image Renderer plugin where a full-read SSRF could reach sensitive internal services. Given the 97% EPSS score, treat this as likely to be exploited soon and audit whether your CSP has been customized or relaxed and whether Grafana is reachable without authentication.

Affected
Grafana Labs Grafana
Estimated exposure
mass≈100,000+ internet-exposed Grafana instances — Public internet scans have long counted Grafana among the most exposed self-hosted dashboards (hundreds of thousands of instances online), and the accompanying report that over a third of Grafana instances are exposed to this flaw puts the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
grafana
Products
grafana
Weakness
CWE-79, CWE-601
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

In the news