Skip to main content
← All vulnerabilities
CVE-2022-21702GHSA-XC3P-28HW-Q24GBIT-GRAFANA-2022-21702

Cross site scripting in Grafana proxy

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.5.15, 8.3.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • grafana grafana

    From 2.0.0-beta1 · fixed in 7.5.15; From 8.0.0 · fixed in 8.3.5

  • github.com/grafana/grafanaGo

    From 2.0.0-beta1 · fixed in 7.5.15

  • github.com/grafana/grafanaGo

    From 8.0.0 · fixed in 8.3.5

References 7

GitHub · grafana/grafana

grafana.com

security.netapp.com

lists.fedoraproject.org