cve.bz

CVE-2025-4123 grafana grafana: Cross-site Scripting

6.1 mediumExploitEPSS 97%Fix available

Medium (6.1) in grafana grafana. EPSS 97% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/grafana/grafana 0.0.0-20250521183405-c7a690348df7.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
97% (unchanged from 97% a week ago; 97% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-05-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-4123 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-4123?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-4123?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-4123 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Grafanafrom 10.4.18+security-01 before 10.4.19
Grafanafrom 11.2.9+security-01 before 11.2.10
Grafanafrom 11.3.6+security-01 before 11.3.7
Grafanafrom 11.4.4+security-01 before 11.4.5
Grafanafrom 11.5.4+security-01 before 11.5.5
Grafanafrom 11.6.1+security-01 before 11.6.2
Grafanafrom 12.0.0+security-01 before 12.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q53q-gxq9-mgrjGogithub.com/grafana/grafana<0.0.0-20250521183405-c7a690348df70.0.0-20250521183405-c7a690348df7
GO-2025-3704Gogithub.com/grafana/grafanaall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSgrafanano fix listedUBUNTU-CVE-2025-4123
Red Hatenterprise_linux:8::appstreamgrafana, grafana-selinux, grafana-debuginfo and 1 more0:9.2.10-23.el8_10RHSA-2025:7894
Red Hatenterprise_linux:9::appstreamgrafana, grafana-selinux, grafana-debuginfo and 1 more0:10.2.6-13.el9_6RHSA-2025:7893
Red Hatenterprise_linux:10.0grafana, grafana-selinux, grafana-debuginfo and 1 more0:10.2.6-17.el10_0RHSA-2025:7892
Red Hatrhel_aus:8.2::appstreamgrafana, grafana-loki, grafana-mssql and 11 more0:6.3.6-7.el8_2RHSA-2025:8684
Red Hatrhel_aus:8.4::appstreamgrafana, grafana-debuginfo0:7.3.6-9.el8_4RHSA-2025:8683
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamgrafana, grafana-debuginfo0:7.5.11-6.el8_6RHSA-2025:8679
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamgrafana, grafana-debuginfo0:7.5.15-7.el8_8RHSA-2025:8685
Red Hatrhel_e4s:9.0::appstreamgrafana, grafana-debuginfo0:7.5.11-10.el9_0RHSA-2025:8681
Red Hatrhel_e4s:9.2::appstreamgrafana, grafana-debuginfo, grafana-debugsource0:9.0.9-8.el9_2RHSA-2025:8680
Red Hatrhel_eus:9.4::appstreamgrafana, grafana-selinux, grafana-debuginfo and 1 more0:9.2.10-23.el9_4RHSA-2025:8665
SUSEManager Server 4.3release-notes-susemanager4.3.15.2-150400.3.133.1SUSE-SU-2025:01985-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250527T204717-1.1openSUSE-SU-2025:15179-1
openSUSETumbleweedgrafana11.6.1+security01-1.1openSUSE-SU-2025:15171-1
AlmaLinux8grafana, grafana-selinux9.2.10-23.el8_10ALSA-2025:7894
AlmaLinux9grafana, grafana-selinux10.2.6-13.el9_6ALSA-2025:7893
Rocky Linux8grafana0:9.2.10-23.el8_10RLSA-2025:7894
Rocky Linux9grafana0:10.2.6-13.el9_6RLSA-2025:7893
Rocky Linux10grafana0:10.2.6-17.el10_0RLSA-2025:7892

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Grafana vulnerability is Important due to its low exploitation barrier and high impact. Unlike typical XSS flaws, it can be triggered without authentication if anonymous access is enabled—a common setup in shared dashboards. It arises from improper handling of user-supplied paths in custom frontend plugins, leading to XSS and open redirect. When combined with the Grafana Image Renderer plugin, it enables full-read SSRF, exposing internal services and cloud metadata. This makes it a high-severity issue with serious real-world implications, especially in misconfigured or publicly exposed Grafana instances.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10grafana-0:10.2.6-17.el10_0Fixed 2025-05-19RHSA-2025:7892
Red Hat Enterprise Linux 8grafana-0:9.2.10-23.el8_10Fixed 2025-05-19RHSA-2025:7894
Red Hat Enterprise Linux 8.2 Advanced Update Supportgrafana-0:6.3.6-7.el8_2Fixed 2025-06-09RHSA-2025:8684
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgrafana-0:7.3.6-9.el8_4Fixed 2025-06-09RHSA-2025:8683
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgrafana-0:7.5.11-6.el8_6Fixed 2025-06-09RHSA-2025:8679
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicegrafana-0:7.5.11-6.el8_6Fixed 2025-06-09RHSA-2025:8679
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsgrafana-0:7.5.11-6.el8_6Fixed 2025-06-09RHSA-2025:8679
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicegrafana-0:7.5.15-7.el8_8Fixed 2025-06-09RHSA-2025:8685
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsgrafana-0:7.5.15-7.el8_8Fixed 2025-06-09RHSA-2025:8685
Red Hat Enterprise Linux 9grafana-0:10.2.6-13.el9_6Fixed 2025-05-19RHSA-2025:7893
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsgrafana-0:7.5.11-10.el9_0Fixed 2025-06-09RHSA-2025:8681
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgrafana-0:9.0.9-8.el9_2Fixed 2025-06-09RHSA-2025:8680
Red Hat Enterprise Linux 9.4 Extended Update Supportgrafana-0:9.2.10-23.el9_4Fixed 2025-06-09RHSA-2025:8665

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-4123.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Grafana - XSS / Open Redirect / SSRF via Client Path Traversal
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Grafana Open Redirect (CVE-2025-4123) M1 sid 2065929
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Grafana Open Redirect (CVE-2025-4123) M2 sid 2065930
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Grafana Account Takeover via Path Traversal & Open Redirect (CVE-2025-4123) sid 2063023

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium
  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON