CVE-2022-21702
Fixed in a distro release EPSS 2%CVSS 6.5
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.
Products: grafana
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Go | github.com/grafana/grafana | 7.5.15 |
| Go | github.com/grafana/grafana | 8.3.5 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | grafana | 7.5.15-3.el8 |
| AlmaLinux 9 | grafana | 7.5.15-3.el9 |
| Red Hat Enterprise Linux 8 | grafana | 0:7.5.15-3.el8 |
| Red Hat Enterprise Linux 8 | grafana-debuginfo | 0:7.5.15-3.el8 |
| Red Hat Enterprise Linux 9 | grafana | 0:7.5.15-3.el9 |
| Red Hat Enterprise Linux 9 | grafana-debuginfo | 0:7.5.15-3.el9 |
| Rocky Linux 8 | grafana | 0:7.5.15-3.el8 |
| Rocky Linux 9 | grafana | 0:7.5.15-3.el9 |
| SUSE Enterprise Storage 6 | grafana | 8.5.13-150100.3.12.1 |
| SUSE HPE Helion OpenStack 8 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | grafana | 8.3.10-150200.3.26.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Linux Enterprise Server 12 SP4-LTSS | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Linux Enterprise Server 12 SP5 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Manager Client Tools 12 | golang-github-QubitProducts-exporter_exporter | 0.4.0-1.6.1 |
| SUSE Manager Client Tools 12 | golang-github-prometheus-alertmanager | 0.23.0-1.12.3 |
| SUSE Manager Client Tools 12 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE Manager Client Tools 12 | grafana | 8.3.5-1.30.3 |
| SUSE Manager Client Tools 12 | mgr-cfg | 4.3.6-1.27.4 |
| SUSE Manager Client Tools 12 | mgr-custom-info | 4.3.3-1.18.1 |
| SUSE Manager Client Tools 12 | mgr-daemon | 4.3.4-1.32.3 |
| SUSE Manager Client Tools 12 | mgr-osad | 4.3.6-1.39.4 |
| SUSE Manager Client Tools 12 | mgr-push | 4.3.4-1.21.4 |
| SUSE Manager Client Tools 12 | mgr-virtualization | 4.3.5-1.29.3 |
| SUSE Manager Client Tools 12 | prometheus-blackbox_exporter | 0.19.0-1.8.2 |
| SUSE Manager Client Tools 12 | prometheus-postgres_exporter | 0.10.0-1.8.2 |
| SUSE Manager Client Tools 12 | python-hwdata | 2.3.5-12.9.1 |
| SUSE Manager Client Tools 12 | rhnlib | 4.3.4-21.43.3 |
| SUSE Manager Client Tools 12 | spacecmd | 4.3.11-38.103.3 |
| SUSE Manager Client Tools 12 | spacewalk-client-tools | 4.3.9-52.71.3 |
| SUSE Manager Client Tools 12 | spacewalk-koan | 4.3.5-24.33.3 |
| SUSE Manager Client Tools 12 | spacewalk-oscap | 4.3.5-19.27.1 |
| SUSE Manager Client Tools 12 | spacewalk-remote-utils | 4.3.3-24.24.3 |
| SUSE Manager Client Tools 12 | supportutils-plugin-salt | 1.2.0-6.16.1 |
| SUSE Manager Client Tools 12 | supportutils-plugin-susemanager-client | 4.3.2-6.24.1 |
| SUSE Manager Client Tools 12 | suseRegisterInfo | 4.3.3-25.27.3 |
| SUSE Manager Client Tools 12 | uyuni-common-libs | 4.3.4-1.21.3 |
| SUSE Manager Client Tools 12-BETA | golang-github-QubitProducts-exporter_exporter | 0.4.0-4.6.2 |
| SUSE Manager Client Tools 12-BETA | golang-github-boynux-squid_exporter | 1.6-4.9.2 |
| SUSE Manager Client Tools 12-BETA | golang-github-lusitaniae-apache_exporter | 1.0.0-4.12.4 |
| SUSE Manager Client Tools 12-BETA | golang-github-prometheus-alertmanager | 0.26.0-4.12.4 |
| SUSE Manager Client Tools 12-BETA | golang-github-prometheus-node_exporter | 1.5.0-4.15.4 |
| SUSE Manager Client Tools 12-BETA | golang-github-prometheus-prometheus | 2.45.0-4.33.3 |
| SUSE Manager Client Tools 12-BETA | golang-github-prometheus-promu | 0.14.0-4.12.2 |
| SUSE Manager Client Tools 12-BETA | grafana | 9.5.8-4.21.2 |
| SUSE Manager Client Tools 12-BETA | kiwi-desc-saltboot | 0.1.1687520761.cefb248-4.15.2 |
| SUSE Manager Client Tools 12-BETA | mgr-push | 5.0.1-4.21.4 |
| SUSE Manager Client Tools 12-BETA | prometheus-blackbox_exporter | 0.24.0-3.6.3 |
| SUSE Manager Client Tools 12-BETA | prometheus-postgres_exporter | 0.10.1-3.6.4 |
| SUSE Manager Client Tools 12-BETA | python-hwdata | 2.3.5-15.12.2 |
| SUSE Manager Client Tools 12-BETA | rhnlib | 5.0.1-24.30.3 |
| SUSE Manager Client Tools 12-BETA | spacecmd | 5.0.1-41.42.3 |
| SUSE Manager Client Tools 12-BETA | supportutils-plugin-salt | 1.2.2-9.9.2 |
| SUSE Manager Client Tools 12-BETA | supportutils-plugin-susemanager-client | 5.0.1-9.15.2 |
| SUSE Manager Client Tools 12-BETA | system-user-grafana | 1.0.0-3.7.2 |
| SUSE Manager Client Tools 12-BETA | system-user-prometheus | 1.0.0-3.7.2 |
| SUSE Manager Client Tools 12-BETA | uyuni-common-libs | 5.0.1-3.33.3 |
| SUSE Manager Client Tools 15 | grafana | 8.3.5-150000.1.30.1 |
| SUSE Manager Client Tools 15 | mgr-cfg | 4.2.8-150000.1.24.1 |
| SUSE Manager Client Tools 15 | mgr-osad | 4.2.8-150000.1.36.1 |
| SUSE Manager Client Tools 15 | mgr-push | 4.2.5-150000.1.18.2 |
| SUSE Manager Client Tools 15 | mgr-virtualization | 4.2.4-150000.1.26.1 |
| SUSE Manager Client Tools 15 | prometheus-postgres_exporter | 0.10.0-150000.1.3.1 |
| SUSE Manager Client Tools 15 | rhnlib | 4.2.6-150000.3.34.1 |
| SUSE Manager Client Tools 15 | spacecmd | 4.2.16-150000.3.77.1 |
| SUSE Manager Client Tools 15 | spacewalk-client-tools | 4.2.18-150000.3.59.1 |
| SUSE Manager Client Tools 15 | spacewalk-koan | 4.2.6-150000.3.27.1 |
| SUSE Manager Client Tools 15 | spacewalk-oscap | 4.2.4-150000.3.18.1 |
| SUSE Manager Client Tools 15 | suseRegisterInfo | 4.2.6-150000.3.21.1 |
| SUSE Manager Server Module 4.2 | prometheus-postgres_exporter | 0.10.0-150000.1.3.1 |
| SUSE OpenStack Cloud 8 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE OpenStack Cloud 9 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE OpenStack Cloud Crowbar 8 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| SUSE OpenStack Cloud Crowbar 9 | golang-github-prometheus-node_exporter | 1.3.0-1.15.3 |
| Ubuntu 16.04 LTS | grafana | no fix |
| openSUSE Leap 15.3 | grafana | 8.3.10-150200.3.26.1 |
| openSUSE Leap 15.3 | grafana | 8.3.5-150200.3.21.1 |
| openSUSE Leap 15.3 | prometheus-postgres_exporter | 0.10.0-150000.1.3.1 |
| openSUSE Leap 15.3 | rhnlib | 4.2.6-150000.3.34.1 |
| openSUSE Leap 15.3 | spacecmd | 4.2.16-150000.3.77.1 |
| openSUSE Leap 15.4 | grafana | 8.3.10-150200.3.26.1 |
| openSUSE Leap 15.4 | grafana | 8.3.5-150200.3.21.1 |
| openSUSE Tumbleweed | grafana | 8.3.5-1.1 |