Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

CVE-2025-4123 — grafana

HIGHFix: grafana/grafana@c7a6903

CVE-2025-4123 is a high-severity (CVSS 7.6) Cross-site Scripting (XSS) vulnerability in github.com/grafana/grafana. 3 public exploit references exist, so weaponization risk is real. A fix is available for github.com/grafana/grafana — see the affected versions and patch details below.

Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin

Also known asBIT-grafana-2025-4123GHSA-q53q-gxq9-mgrjGO-2025-3704
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
3 known
Exploitation data as of Oct 25, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-4123.

EPSS Exploitation Probability

via FIRST.org ↗
97.1%probability of exploitation in next 30 days
Very High Risk+0.08%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
0.00%33.3%66.7%100.0%6.3%97.1%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2025-4123 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).

Where this sits among everything scored

Of 397,508 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐹github.com/grafana/grafana

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

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 Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/grafana/grafanaall versions0.0.0-20250521183405-c7a690348df7go get github.com/grafana/grafana@v0.0.0-20250521183405-c7a690348df7

Affected Products

1 product · 13 configurations
Application
grafanagrafana
≥ 11.6.0 && < 11.6.1
7 versions
10.4.1811.2.911.3.611.4.411.5.411.6.112.0.0
Exploits & PoCs
3

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-52491webappsmultiple

Grafana 11.6.0 - SSRF

by Beatriz Fresno Naumova · Apr 6, 2026

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/grafana/grafana, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/grafana/grafana to 0.0.0-20250521183405-c7a690348df7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-4123 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

How to detect CVE-2025-4123

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2025-4123 -u https://target
Template
Grafana - XSS / Open Redirect / SSRF via Client Path Traversal
Severity
high
Impact
Attackers can exploit path traversal to achieve open redirect, XSS, or SSRF attacks, potentially leading to internal data exposure or account takeover.
Remediation
Upgrade Grafana to the latest version that properly validates and sanitizes file paths in the render endpoint.

Template by ProjectDiscovery nuclei-templates (iamnoooob, rootxharsh, pdresearch), MIT licensed. View the full template. Scan only systems you are authorised to test.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

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,…

Workaround published by Red Hat
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.
Source: Red Hat security advisory for CVE-2025-4123 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Enterprise Linux 10grafana-0:10.2.6-17.el10_0RHSA-2025:7892
Red Hat Enterprise Linux 8grafana-0:9.2.10-23.el8_10RHSA-2025:7894
Red Hat Enterprise Linux 8.2 Advanced Update Supportgrafana-0:6.3.6-7.el8_2RHSA-2025:8684
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgrafana-0:7.3.6-9.el8_4RHSA-2025:8683
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgrafana-0:7.5.11-6.el8_6RHSA-2025:8679
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicegrafana-0:7.5.15-7.el8_8RHSA-2025:8685
Red Hat Enterprise Linux 9grafana-0:10.2.6-13.el9_6RHSA-2025:7893
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsgrafana-0:7.5.11-10.el9_0RHSA-2025:8681

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2025-4123 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2025-4123: grafana XSS — Fix Available