CVE-2025-6023
Grafana vulnerability analysis and mitigation

Overview

CVE-2025-6023 is an open redirect vulnerability in Grafana OSS that can be chained with path traversal to achieve cross-site scripting (XSS) attacks. The vulnerability was introduced in Grafana v11.5.0 and affects versions 11.3.x through 12.0.x. It was published on July 18, 2025, with patches released the same day. The CVSS v3.1 base score is 7.6 (High) (GitHub Advisory, Grafana Advisory).

Technical details

The vulnerability is classified under CWE-601 (URL Redirection to Untrusted Site / Open Redirect) and CWE-79 (Cross-site Scripting). An unauthenticated attacker can craft a malicious URL that exploits Grafana's open redirect handling, which when combined with path traversal (CWE-22) techniques, allows injection of malicious scripts into the victim's browser context. Exploitation requires user interaction — specifically, a victim must click a crafted link. OPSWAT's Unit 515 research team later discovered that the initial fix was incomplete, potentially allowing full account takeover via a bypass of the patch (GitHub Advisory, OPSWAT Blog, ZeroPath Blog).

Impact

Successful exploitation can lead to theft of user credentials, session hijacking, and unauthorized actions performed on behalf of the victim within the Grafana interface. The high confidentiality impact reflects the risk of sensitive dashboard data, API keys, and session tokens being exfiltrated via injected scripts. Integrity and availability are also partially affected, as attackers could manipulate dashboard configurations or disrupt monitoring operations. The incomplete initial fix, as discovered by OPSWAT Unit 515, elevated the risk to full account takeover (OPSWAT Blog, GitHub Advisory).

Exploitability

As of the initial disclosure in July 2025, no public proof-of-concept exploit was confirmed; however, the EPSS score rose significantly to 7.087% (92nd percentile), indicating elevated exploitation probability (GitHub Advisory). GreyNoise subsequently reported coordinated exploitation attempts targeting Grafana instances in the wild (GreyNoise Blog). A Nuclei template for detection was added to the ProjectDiscovery repository, and the vulnerability appeared in multiple trending CVE lists. No specific threat actor attribution has been published. The vulnerability is not currently listed in the CISA KEV catalog based on available data.

Exploitation steps

  1. Reconnaissance: Identify internet-facing Grafana instances running versions 11.3.x through 12.0.x (prior to the security patches) using tools like Shodan or Censys, searching for Grafana login pages or version banners.
  2. Craft malicious redirect URL: Construct a URL targeting Grafana's redirect handling endpoint that incorporates path traversal sequences (e.g., ../) to escape the intended redirect scope and point to an attacker-controlled resource.
  3. Inject XSS payload: Embed a JavaScript payload within the crafted URL such that when the open redirect resolves via path traversal, the browser evaluates the script in the context of the Grafana origin.
  4. Deliver to victim: Send the crafted URL to a Grafana user via phishing email, chat message, or embedded link — user interaction (clicking the link) is required to trigger the vulnerability.
  5. Harvest credentials or session tokens: The executed script can steal session cookies, API keys, or credentials stored in the browser, or perform actions on behalf of the authenticated user within Grafana (ZeroPath Blog, OPSWAT Blog).

Indicators of compromise

  • Network: Unusual outbound HTTP requests from Grafana users' browsers to unknown external domains shortly after clicking Grafana links; HTTP requests to Grafana containing URL-encoded path traversal sequences (%2F..%2F, %2e%2e) in redirect parameters.
  • Logs: Grafana access logs showing requests to redirect or login endpoints with suspicious redirectTo or similar parameters containing traversal patterns or external URLs; repeated requests from the same IP to redirect-handling endpoints.
  • File System / Application: Unexpected changes to Grafana dashboard configurations or API key creation events in audit logs following user sessions initiated via external links.
  • Process/Session: Anomalous API calls or dashboard modifications performed under legitimate user accounts at unusual times, potentially indicating session hijacking (GreyNoise Blog, ZeroPath Blog).

Mitigation and workarounds

Grafana has released patched versions addressing CVE-2025-6023: 12.0.2+security-01, 11.6.3+security-01, 11.5.6+security-01, 11.4.6+security-01, and 11.3.8+security-01. Because OPSWAT Unit 515 identified an incomplete fix in the initial patches, organizations should ensure they are running the latest available release (12.1.0 or later where applicable). As additional mitigations, administrators should implement a strict Content Security Policy (CSP), enforce input validation and output encoding, and monitor for suspicious redirect activity. No configuration-only workaround has been published; upgrading is the recommended remediation (Grafana Advisory, OPSWAT Blog, Grafana Blog).

Community reactions

Grafana Labs published a security advisory and blog post on July 17–18, 2025, disclosing the vulnerability alongside CVE-2025-6197 (Grafana Blog). OPSWAT's Unit 515 team published notable follow-up research revealing that the initial patch was incomplete and could lead to full account takeover, drawing significant community attention (OPSWAT Blog). The vulnerability was covered by multiple security news outlets including GBHackers, SecurityOnline, and CyberSecurityNews, and discussed on Reddit's r/pwnhub and r/cybersecurity. The Canadian Centre for Cyber Security (CCCS) issued advisory AV25-439, and CISA included it in its weekly vulnerability bulletin (CISA Bulletin, CCCS Advisory).

Additional resources


SourceThis report was generated using AI

Related Grafana vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73089HIGH7.5
  • Grafana logoGrafana
  • grafana-selinux
NoYesAug 11, 2026
CVE-2026-73088HIGH7.5
  • Grafana logoGrafana
  • rls
NoYesAug 11, 2026
CVE-2026-73086HIGH7.4
  • Grafana logoGrafana
  • grafana-azure-monitor
NoYesAug 11, 2026
CVE-2026-19017MEDIUM6.8
  • Grafana logoGrafana
  • consul
NoYesAug 07, 2026
CVE-2026-19016MEDIUM4.2
  • Grafana logoGrafana
  • grafana-prometheus
NoYesAug 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management