CVE-2022-21702: Cross-site scripting in Grafana datasource and plugin proxies
- Vendors
- NetAppFedora ProjectGrafana Labs
CVE-2022-21702 is a cross-site scripting vulnerability in Grafana's datasource proxy, plugin proxy, and backend plugin resource handling. An attacker controlling a connected datasource, plugin backend, or associated HTTP service can serve malicious HTML through Grafana and induce an authenticated user to open a specially crafted link. The resulting script executes in the Grafana origin and can enable inappropriate access to other data sources within the same Grafana organization.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the authenticated user's Grafana browser context, potentially allowing access to other data sources connected to the same organization using that user's permissions. A compromised datasource or plugin can thereby affect the confidentiality and integrity of resources beyond its own data.
Mitigation
If you can’t patch tonight, do this now.
Pending upgrade, configure a reverse proxy to set the response header 'Content-Security-Policy: sandbox' on the affected routes: /api/datasources/proxy*, /api/plugin-proxy*, /api/plugins/<pluginId>/resources*, and /api/datasources/<id>/resources*. An alternative is to set 'Content-Disposition: attachment' on these responses so browsers download rather than render the returned content.
Remediation
Patch, then assume compromise.
Upgrade Grafana to a patched release. Fixes are available in Grafana 7.5.15 and 8.3.5. For vendor-packaged installations, apply the corresponding security update; Red Hat supplies grafana-7.5.15-3.el8 through RHSA-2022:7519 and grafana-7.5.15-3.el9 through RHSA-2022:8057.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-21702 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2022-21702?
- Yes. As of Nov 19, 2026, Mallory has reports of a public exploit for CVE-2022-21702.
- Is there a patch for CVE-2022-21702?
- Upgrade Grafana to a patched release. Fixes are available in Grafana 7.5.15 and 8.3.5.
- What products are affected by CVE-2022-21702?
- Grafana Labs Grafana, NetApp E-Series Performance Analyzer, and Fedora Project Fedora.
- How severe is CVE-2022-21702?
- CVE-2022-21702 has a CVSS v3.1 score of 5.4 (Medium) and an EPSS score of 2.3% (84th percentile) as of Nov 19, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.