Live threats

All CVEs / Grafana

CVE-2022-21702Grafana

Medium 5.4

Priority
33
CVSS 3.1
5.4
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
Yes
Published
Feb 8, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Grafana.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/grafana/grafana ≥ 2.0.0-beta1 < 7.5.15 7.5.15 go get github.com/grafana/grafana@v7.5.15
Go github.com/grafana/grafana ≥ 8.0.0 < 8.3.5 8.3.5 go get github.com/grafana/grafana@v8.3.5

Per OSV / GitHub Advisories (GHSA-xc3p-28hw-q24g). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
grafanagrafana≥ 2.0.1 < 7.5.15
grafanagrafana≥ 8.0.0 < 8.3.5
grafanagrafana2.0.0
grafanagrafana2.0.0
netappe-series_performance_analyzer< 3.0
fedoraprojectfedora34
fedoraprojectfedora35
fedoraprojectfedora36

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.