Grafana Cross-Site-Scripting (XSS) via custom loaded frontend pluginGHSA-q53q-gxq9-mgrj
HIGHFix: grafana/grafana@c7a6903GHSA-q53q-gxq9-mgrj 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.
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 GHSA-q53q-gxq9-mgrj.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
GHSA-q53q-gxq9-mgrj 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 398,142 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
github.com/grafana/grafanaReal-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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/grafana/grafana | all versions | 0.0.0-20250521183405-c7a690348df7go get github.com/grafana/grafana@v0.0.0-20250521183405-c7a690348df7 |
Affected Products
grafanagrafanaResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Grafana 11.6.0 - SSRF
by Beatriz Fresno Naumova · Apr 6, 2026
Detection & mitigation playbook
Open-source dependencyDetect
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.
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 GHSA-q53q-gxq9-mgrj is resolved across your whole dependency graph.
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 GHSA-q53q-gxq9-mgrj
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id ghsa-q53q-gxq9-mgrj -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.
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,…
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 GHSA-q53q-gxq9-mgrj (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 10 | grafana-0:10.2.6-17.el10_0 | RHSA-2025:7892 |
| Red Hat Enterprise Linux 8 | grafana-0:9.2.10-23.el8_10 | RHSA-2025:7894 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | grafana-0:6.3.6-7.el8_2 | RHSA-2025:8684 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | grafana-0:7.3.6-9.el8_4 | RHSA-2025:8683 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | grafana-0:7.5.11-6.el8_6 | RHSA-2025:8679 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | grafana-0:7.5.15-7.el8_8 | RHSA-2025:8685 |
| Red Hat Enterprise Linux 9 | grafana-0:10.2.6-13.el9_6 | RHSA-2025:7893 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | grafana-0:7.5.11-10.el9_0 | RHSA-2025:8681 |
Frequently Asked Questions
Is GHSA-q53q-gxq9-mgrj in your dependencies?
Find it across Go, including transitive dependencies.