PoC Monitor
← All CVEs
CVE-2025-4123published 22 May 2025 07:44 UTCData: JSON · API

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.

First public PoC 2 hafter publication · 22 May 2025 · nuclei template
Public PoCs53 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS7.6high · scored by CNA · CWE-79
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Grafana Grafana
  • >= 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

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published22 May 2025 · t = 0First public PoC22 May 2025 · t+2h

First 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
RepositoryCreatedStarsAssessment
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
  • no network code found (normal for a local exploit)

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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
ItsNee/Grafana-CVE-2025-4123-POC 12 Sep 2025 +113 d 0 Informational · write-up
Suspicious or fake 1
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
Exploit-DBGrafana 11.6.0 - SSRF6 Apr 202614 Nov 2026
nuclei templatenuclei template: Grafana - XSS / Open Redirect / SSRF via Client Path Traversal22 May 202514 Nov 2026

PoC characteristics

What to hunt for in your logs · from 3 PoC repos

GET /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 fetch Accept: application/json, text/plain, */* Accept-Language: en-US,en;q=0.9 X-Grafana-Device-Id: 3b3353978aa55a04cd5b130d126adfee X-Grafana-Org-Id: 1
Body markers
"name":"pwned" "email":"pwned@pwned.com" "login":"pwned" in application/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.

GET /public/..%2F%5coast.pro%2F%3f%2F..%2F..
(?i)^/public/\.\.%2F%5coast\.pro%2F%3f%2F\.\.%2F\.\.(?:[?#].*)?$
GET /render/public/..%252f%255C{var}%252f%253F%252f..%252f..
(?i)^/render/public/\.\.%252f%255C[^/?#]*%252f%253F%252f\.\.%252f\.\.(?:[?#].*)?$
PUT /api/user
(?i)^/api/user(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /public/..%2F%5coast.pro%2F%3f%2F..%2F..
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;)
GET /render/public/..%252f%255C{var}%252f%253F%252f..%252f..
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;)
PUT /api/user
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.

GET /public/..%2F%5coast.pro%2F%3f%2F..%2F..
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
GET /render/public/..%252f%255C{var}%252f%253F%252f..%252f..
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
PUT /api/user
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