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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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 | 10.4.19 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | grafana | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | grafana +1 | 10.2.6-17.el10_0 | RHSA-2025:7892 |
| RHEL 9 | grafana +1 | 10.2.6-13.el9_6 | RHSA-2025:7893 |
| RHEL 8 | grafana +1 | 9.2.10-23.el8_10 | RHSA-2025:7894 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.4 EUS | grafana +1 | 9.2.10-23.el9_4 | RHSA-2025:8665 |
| RHEL 9.2 E4S | grafana | 9.0.9-8.el9_2 | RHSA-2025:8680 |
| RHEL 9.0 E4S | grafana | 7.5.11-10.el9_0 | RHSA-2025:8681 |
| RHEL 8.8 TUS | grafana | 7.5.15-7.el8_8 | RHSA-2025:8685 |
| RHEL 8.8 E4S | grafana | 7.5.15-7.el8_8 | RHSA-2025:8685 |
| RHEL 8.6 TUS | grafana | 7.5.11-6.el8_6 | RHSA-2025:8679 |
| RHEL 8.6 E4S | grafana | 7.5.11-6.el8_6 | RHSA-2025:8679 |
| RHEL 8.6 AUS | grafana | 7.5.11-6.el8_6 | RHSA-2025:8679 |
| RHEL 8.4 AUS | grafana | 7.3.6-9.el8_4 | RHSA-2025:8683 |
| RHEL 8.2 AUS | grafana +12 | 6.3.6-7.el8_2 | RHSA-2025:8684 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | grafana +1 | 10.2.6-13.el9_6 | ALSA-2025:7893 |
| AlmaLinux 8 | grafana +1 | 9.2.10-23.el8_10 | ALSA-2025:7894 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | grafana | 10.2.6-17.el10_0 | RLSA-2025:7892 |
| Rocky Linux 9 | grafana | 10.2.6-13.el9_6 | RLSA-2025:7893 |
| Rocky Linux 8 | grafana | 9.2.10-23.el8_10 | RLSA-2025:7894 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Manager Server 4.3 | release-notes-susemanager | 4.3.15.2-150400.3.133.1 | SUSE-SU-2025:01985-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20250527T204717-1.1 | openSUSE-SU-2025:15179-1 |
| openSUSE Tumbleweed | grafana | 11.6.1+security01-1.1 | openSUSE-SU-2025:15171-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | grafana +1 | 10.2.6-18.el10_0 | ELSA-2025-7892 |
| Oracle Linux 9 | grafana +1 | 10.2.6-13.el9_6 | ELSA-2025-7893 |
| Oracle Linux 8 | grafana +1 | 9.2.10-23.el8_10 | ELSA-2025-7894 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Grafana 11.6.0 - SSRF EDB-52491 · webapps · Apr 6, 2026
GitHub 5 repositories
-
NightBloodZ/CVE-2025-4123 ★ 58 · May 22, 2025
Script to exploit Grafana CVE-2025-4123: XSS and Full-Read SSRF
-
ynsmroztas/CVE-2025-4123-Exploit-Tool-Grafana- ★ 33 · Jun 4, 2025
CVE-2025-4123 - Grafana Tool
-
MorphyKutay/CVE-2025-4123-Exploit ★ 0 · Oct 14, 2025
CVE-2025-4123 Grafana Open Redirect Exploit
-
ItsNee/Grafana-CVE-2025-4123-POC ★ 0 · Sep 12, 2025
Grafana CVE-2025-4123-POC
-
imbas007/CVE-2025-4123-template ★ 0 · Jun 3, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Grafana - XSS / Open Redirect / SSRF via Client Path Traversal http/cves/2025/CVE-2025-4123.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/grafana/grafana | < 0.0.0-20250521183405-c7a690348df7 | 0.0.0-20250521183405-c7a690348df7 | GHSA-q53q-gxq9-mgrj |
| Go | github.com/grafana/grafana | all versions | — | GO-2025-3704 |
Advisories 23
- ALSA-2025:7893 Important: grafana security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:7894 Important: grafana security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2025:8685 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2025:8680 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2025:8665 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2025:8683 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:8684 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:8681 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:8679 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:7894 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:7892 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:7893 Red Hat Security Advisory: grafana security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- WID-SEC-2025-1096 Grafana: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · May 3, 2026
- openSUSE-SU-2025:15179-1 govulncheck-vulndb-0.0.20250527T204717-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15171-1 grafana-11.6.1+security01-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:01985-1 Security update 4.3.15 for Multi-Linux Manager Server SUSE / openSUSE Security Updates · Feb 4, 2026
- SCA-2026-0002 Vulnerabilities affecting SICK Incoming Goods Suite SICK PSIRT · Jan 22, 2026
- RLSA-2025:7892 Important: grafana security update Rocky Linux Security Advisories · Oct 9, 2025
- RLSA-2025:7893 Important: grafana security update Rocky Linux Security Advisories · Oct 4, 2025
- RLSA-2025:7894 Important: grafana security update Rocky Linux Security Advisories · Jul 29, 2025
- ELSA-2025-7892 Important: grafana security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jun 30, 2025
- ELSA-2025-7893 Important: grafana security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 22, 2025
- ELSA-2025-7894 Important: grafana security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 19, 2025