Patchfirst
CVE-2025-4123 Public exploit High · 7.6 EPSS 97.1%

A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open…

Grafana · Grafana

Summary

A cross-site scripting flaw in Grafana arises from chaining a client-side path traversal with an open redirect, which can send users to an external site hosting a frontend plugin that runs arbitrary JavaScript. An unauthenticated attacker can exploit this by luring a user to a crafted link, with anonymous access enabled sufficing and no editor permissions required, and the default Content-Security-Policy's connect-src directive blocks the attack; if the Grafana Image Renderer plugin is installed, the open redirect can additionally be used for a full-read SSRF.

Official description · CVE.org

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.

Breakdown
66.0 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 2 months after disclosure. Public exploit code (PoC-in-GitHub) was available the same day.

  1. DisclosedPublic exploit codePoC-in-GitHubday 0
  2. First seen exploitedVulnCheck KEV evidence+2 mo

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: github.com/grafana/grafana.

Gogithub.com/grafana/grafanaGHSA-q53q-gxq9-mgrjGO-2025-3704

Upgrade to 0.0.0-20250521183405-c7a690348df7

Still affected on this line by CVE-2018-15727 (fixed in 4.6.4+incompatible, a newer line); CVE-2021-39226 (fixed in 7.5.11, a newer line); CVE-2022-31097 (no fix published); CVE-2024-9264 (no fix published); CVE-2025-3415 (no fix published); CVE-2025-6023 (no fix published).

Also affected, despite being newer: All versions.

Gogo get github.com/grafana/grafana@v0.0.0-20250521183405-c7a690348df7

The first fix for CVE-2025-4123.

Affected versions, by release line

If you runUpgrade to
All versionsNo fix published
All versions before 0.0.0-20250521183405-c7a690348df70.0.0-20250521183405-c7a690348df7

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close