Skip to main content
MEDIUM

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.

Set up CVE WatchFree account · no credit card

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

  • CVE-2022-21702 Red Hat Product Security18 products fixed · 16 known affected

    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

  • RHSA-2022:8057 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: grafana security, bug fix, and enhancement update

  • RHSA-2022:7519 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: grafana security, bug fix, and enhancement update

Full record on NVD

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?

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.

Is CVE-2022-21702 actively exploited?

Active exploitation of CVE-2022-21702 has not been confirmed. Its EPSS score was 2.3% on 2026-10-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-21702?

CVE-2022-21702 has a CVSS v3 base score of 5.4 (MEDIUM severity).

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