cve.bz

CVE-2022-21702 Cross-site Scripting

5.4 mediumExploit referenceEPSS 2.3%Fix available

Medium (5.4). EPSS 2.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/grafana/grafana 7.5.15, 8.3.5.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21702 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21702?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21702?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21702 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
grafana:grafanafrom 2.0.1 before 7.5.15
grafana:grafanafrom 8.0.0 before 8.3.5
grafana:grafana2.0.0:beta1
grafana:grafana2.0.0:beta3
netapp:e-series_performance_analyzerbefore 3.0
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xc3p-28hw-q24gGogithub.com/grafana/grafana>=2.0.0-beta1 <7.5.157.5.15
GHSA-xc3p-28hw-q24gGogithub.com/grafana/grafana>=8.0.0 <8.3.58.3.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSgrafanano fix listedUBUNTU-CVE-2022-21702
Red Hatenterprise_linux:8::appstreamgrafana, grafana-debuginfo0:7.5.15-3.el8RHSA-2022:7519
Red Hatenterprise_linux:9::appstreamgrafana, grafana-debuginfo0:7.5.15-3.el9RHSA-2022:8057
SUSEEnterprise Storage 6grafana8.5.13-150100.3.12.1SUSE-SU-2022:3676-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 10 moregolang-github-prometheus-node_exporter1.3.0-1.15.3SUSE-SU-2022:2134-1
SUSELinux Enterprise Module for Package Hub 15 SP4grafana8.3.10-150200.3.26.1SUSE-SU-2022:3765-1
SUSEManager Client Tools 12golang-github-QubitProducts-exporter_exporter0.4.0-1.6.1SUSE-SU-2022:2134-1
SUSEManager Client Tools 12golang-github-prometheus-alertmanager0.23.0-1.12.3SUSE-SU-2022:2134-1
SUSEManager Client Tools 12grafana8.3.5-1.30.3SUSE-SU-2022:2134-1
SUSEManager Client Tools 12mgr-cfg4.3.6-1.27.4SUSE-SU-2022:2134-1
SUSEManager Client Tools 12mgr-custom-info4.3.3-1.18.1SUSE-SU-2022:2134-1
SUSEManager Client Tools 12mgr-daemon4.3.4-1.32.3SUSE-SU-2022:2134-1
SUSEManager Client Tools 12mgr-osad4.3.6-1.39.4SUSE-SU-2022:2134-1
SUSEManager Client Tools 12mgr-push4.3.4-1.21.4SUSE-SU-2022:2134-1
SUSEManager Client Tools 12mgr-virtualization4.3.5-1.29.3SUSE-SU-2022:2134-1
44 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3prometheus-postgres_exporter0.10.0-150000.1.3.1SUSE-SU-2022:1396-1
openSUSELeap 15.3rhnlib4.2.6-150000.3.34.1SUSE-SU-2022:1396-1
openSUSELeap 15.3spacecmd4.2.16-150000.3.77.1SUSE-SU-2022:1396-1
openSUSELeap 15.3, Leap 15.4grafana8.3.10-150200.3.26.1SUSE-SU-2022:3765-1
openSUSELeap 15.3, Leap 15.4grafana8.3.5-150200.3.21.1SUSE-FU-2022:1419-1
openSUSETumbleweedgrafana8.3.5-1.1openSUSE-SU-2024:11836-1
AlmaLinux8grafana7.5.15-3.el8ALSA-2022:7519
AlmaLinux9grafana7.5.15-3.el9ALSA-2022:8057
Rocky Linux8grafana0:7.5.15-3.el8RLSA-2022:7519
Rocky Linux9grafana0:7.5.15-3.el9RLSA-2022:8057
Alpinev3.16, v3.17, v3.18 and 6 moregrafana8.3.6-r0ALPINE-CVE-2022-21702

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Please refer to the Grafana upstream advisory for possible workarounds for this issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8grafana-0:7.5.15-3.el8Fixed 2022-11-08RHSA-2022:7519
Red Hat Enterprise Linux 9grafana-0:7.5.15-3.el9Fixed 2022-11-15RHSA-2022:8057
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.1openshift-service-mesh/grafana-rhel8Affected
OpenShift Service Mesh 2.1servicemesh-grafanaAffected
Red Hat 3scale API Management Platform 23scale-operator-bundle-containerNot affected
Red Hat 3scale API Management Platform 23scale-operator-containerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-grafana-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grafana-dashboard-loader-rhel8Affected
Red Hat build of QuarkusgrafanaNot affected
Red Hat Ceph Storage 3grafanaOut of support scope
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Will not fix
Red Hat Ceph Storage 5rhceph/rhceph-5-dashboard-rhel8Will not fix
Red Hat OpenShift Container Platform 3.11openshift3/grafanaAffected
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaAffected
Red Hat OpenShift GitOpsopenshift-gitops-1/gitops-rhel8-operatorNot affected
Red Hat Storage 3grafanaWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21702.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON