6.5

CVE-2022-21702: Cross site scripting in Grafana proxy

Modified
AliasesUBUNTU-CVE-2022-21702GHSA-xc3p-28hw-q24gBIT-grafana-2022-21702
Published 08-02-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-21702 is a medium (CVSS 6.5) vulnerability in fedoraproject fedora. EPSS estimates a 2.34% chance of exploitation in the next 30 days, higher than 83.6% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
2.34%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 9 · Related 7

Timeline

  1. 08-02-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

2.34%

Chance of exploitation in the next 30 days

Percentile

84%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.34% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Grafana

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • grafana≥ 2.0.1, < 8.3.6-r0
Fedoraproject1 product
Github.com/grafana1 product
  • grafana≥ 2.0.0-beta1, < 7.5.15 | ≥ 8.0.0, < 8.3.5
Grafana1 product
  • grafana≥ 2.0.0-beta1, < 7.5.15 | ≥ 2.0.1, < 7.5.15 | ≥ 8.0.0, < 8.3.5 | 2.0.0:beta1 | 2.0.0:beta3
Netapp1 product
Ubuntu1 product
  • grafanaAll versions (No fix recorded)

6 vendors · 6 products

References

17 links
Show all 17 references