Skip to content
Fencer Intel
medium 6.5

CVE-2022-21702 json

Cross site scripting in Grafana proxy

published 4y ago modified 2mo ago also BIT-grafana-2022-21702 , EUVD-2024-1857 , GHSA-xc3p-28hw-q24g

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/grafana/grafana 7.5.15, 8.3.5
  • bitnami grafana 7.5.15, 8.3.5
  • grafana grafana 7.5.15, 8.3.5
  • netapp e-series_performance_analyzer 3.0
  • grafana RHEL 8 7.5.15-3.el8
  • grafana RHEL 9 7.5.15-3.el9

red hat advisories RHSA-2022:7519RHSA-2022:8057

  • rhnlib Manager Client Tools 12-BETA 5.0.1-24.30.3
  • grafana Manager Client Tools 12-BETA 9.5.8-4.21.2
  • mgr-push Manager Client Tools 12-BETA 5.0.1-4.21.4
  • spacecmd Manager Client Tools 12-BETA 5.0.1-41.42.3
  • python-hwdata Manager Client Tools 12-BETA 2.3.5-15.12.2
  • uyuni-common-libs Manager Client Tools 12-BETA 5.0.1-3.33.3
  • kiwi-desc-saltboot Manager Client Tools 12-BETA 0.1.1687520761.cefb248-4.15.2
  • system-user-grafana Manager Client Tools 12-BETA 1.0.0-3.7.2

suse advisories SUSE-SU-2024:0191-1SUSE-SU-2022:3765-1SUSE-SU-2022:3676-1SUSE-SU-2022:2134-1SUSE-FU-2022:1419-1SUSE-SU-2022:1396-1

  • grafana openSUSE Tumbleweed 8.3.5-1.1

opensuse advisories openSUSE-SU-2024:11836-1

  • grafana AlmaLinux 9 7.5.15-3.el9
  • grafana AlmaLinux 8 7.5.15-3.el8

almalinux advisories ALSA-2022:8057ALSA-2022:7519

  • grafana Rocky Linux 9 7.5.15-3.el9
  • grafana Rocky Linux 8 7.5.15-3.el8

rocky linux advisories RLSA-2022:8057RLSA-2022:7519

  • grafana Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 8.3.6-r0

alpine advisories ALPINE-CVE-2022-21702

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2022-21702 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-21702 updated cvss 6.8

grafana: XSS vulnerability in data source handling

  • Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-grafana-prometheus Red Hat OpenShift Service Mesh 2.1 servicemesh-grafana, openshift-service-mesh/grafana-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/acm-grafana-rhel8, rhacm2/grafana-dashboard-loader-rhel9
    affected: workaround, no fix available “Please refer to the Grafana upstream advisory for possible workarounds for this issue.”
  • Red Hat Ceph Storage 3 grafana Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat Ceph Storage 5 rhceph/rhceph-5-dashboard-rhel8
    affected: workaround, no fix planned “Please refer to the Grafana upstream advisory for possible workarounds for this issue.”
  • Red Hat OpenShift Container Platform 3.11 openshift3/grafana Red Hat OpenShift Container Platform 4 openshift4/ose-grafana
    affected: workaround, no fix available “Please refer to the Grafana upstream advisory for possible workarounds for this issue.”
  • Red Hat Storage 3 grafana
    affected: workaround, no fix planned “Please refer to the Grafana upstream advisory for possible workarounds for this issue.”
  • Red Hat Enterprise Linux AppStream (v. 8) grafana 7.5.15-3.el8
    fixed: vendor fix “Please refer to the Grafana upstream advisory for possible workarounds for this issue.” RHSA-2022:7519
  • Red Hat Enterprise Linux AppStream (v. 9) grafana 7.5.15-3.el9
    fixed: vendor fix “Please refer to the Grafana upstream advisory for possible workarounds for this issue.” RHSA-2022:8057
  • Red Hat 3scale API Management Platform 2 3scale-amp2/3scale-rhel7-operator, 3scale-amp2/3scale-rhel7-operator-metadata Red Hat build of Quarkus grafana Red Hat OpenShift GitOps openshift-gitops-1/gitops-rhel8-operator
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
last yr.

Exploit prediction

2.34% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/grafana/grafana/security/advisories/GHSA-xc3p-28hw-q24g referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
GitHub 3.1 6.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
NVD 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 2.1 AV:N/AC:H/Au:S/C:N/I:P/A:N
OSV 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
go github.com/grafana/grafana
>=2.0.0-beta1, <7.5.15
>=8.0.0, <8.3.5
7.5.15
8.3.5
bitnami grafana
>=2.0.1, <7.5.15
>=8.0.0, <8.3.5
7.5.15
8.3.5

Affected products

  • grafana grafana

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.