CVE-2022-21702
CVSS v3
5.4
MEDIUM
EPSS Score
2.3 %
exploit probability, as of 2026-10-18
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for grafana.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- github.com/grafana/grafanaGofrom 8.0.0 · fixed in 8.3.5
- grafanaBitnamifrom 2.0.1 · fixed in 7.5.15
- grafanaAlmaLinux:9all versions · fixed in 7.5.15-3.el9
- grafanaAlmaLinux:8all versions · fixed in 7.5.15-3.el8
Vendor advisories
grafana: XSS vulnerability in data source handling
servicemesh-grafana as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana-prometheus as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana.src as a component of OpenShift Service Mesh 2.0
Red Hat Security Advisory: grafana security, bug fix, and enhancement update
Red Hat Security Advisory: grafana security, bug fix, and enhancement update
Description
Grafana is an open-source platform for monitoring and observability. In affected versions an attacker could serve HTML content thru the Grafana datasource or plugin proxy and trick a user to visit this HTML page using a specially crafted link and execute a Cross-site Scripting (XSS) attack. The attacker could either compromise an existing datasource for a specific Grafana instance or either set up its own public service and instruct anyone to set it up in their Grafana instance. To be impacted, all of the following must be applicable. For the data source proxy: A Grafana HTTP-based datasource configured with Server as Access Mode and a URL set, the attacker has to be in control of the HTTP server serving the URL of above datasource, and a specially crafted link pointing at the attacker controlled data source must be clicked on by an authenticated user. For the plugin proxy: A Grafana HTTP-based app plugin configured and enabled with a URL set, the attacker has to be in control of the HTTP server serving the URL of above app, and a specially crafted link pointing at the attacker controlled plugin must be clocked on by an authenticated user. For the backend plugin resource: An attacker must be able to navigate an authenticated user to a compromised plugin through a crafted link. Users are advised to update to a patched version. There are no known workarounds for this vulnerability.
Technical details
- Published
- 2022-02-08
Frequently asked questions
What is CVE-2022-21702?
Is CVE-2022-21702 actively exploited?
What is the CVSS score for CVE-2022-21702?
Running grafana? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2023-44487KEVsame product
- CVE-2021-39226KEVsame product
- CVE-2021-43798KEVsame product
- CVE-2020-13379same product
- CVE-2024-9264same product
- CVE-2025-4123same productgrafana: Cross-site Scripting (XSS) in Grafana via Custom Frontend Plugins and Open Redirect
- CVE-2021-41174same product
- CVE-2025-6197same productgrafana: Open Redirect in Grafana