Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2022-21702: Cross-site scripting in Grafana datasource and plugin proxies

Published Feb 8, 2022 · Updated 6 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS5.4Medium · v3.1
EPSS2.3%84th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendors
NetAppFedora ProjectGrafana Labs
IdentifiersCVE-2022-21702CWE-79 · Improper Neutralization of Input…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
Fedora ProjectFedoraoperating_system
Grafana LabsGrafanaapplication
NetAppE-Series Performance Analyzerapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.