Live threats

All CVEs / Grafana

CVE-2023-0507Grafana

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.8%
probability of exploitation in 30 days · percentile 54
Auth required
Yes
Published
Mar 1, 2023
Updated
Nov 3, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

Grafana is an open-source platform for monitoring and observability. Starting with the 8.1 branch, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap. The stored XSS vulnerability was possible due to map attributions weren't properly sanitized and allowed arbitrary JavaScript to be executed in the context of the currently authorized user of the Grafana instance. An attacker needs to have the Editor role in order to change a panel to include a map attribution containing JavaScript. This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. Users may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix.

Original NVD text.

What to do

  1. Apply the vendor's security update for Grafana.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/grafana/grafana ≥ 8.1.0 < 8.5.21 8.5.21 go get github.com/grafana/grafana@v8.5.21
Go github.com/grafana/grafana ≥ 9.0.0 < 9.2.13 9.2.13 go get github.com/grafana/grafana@v9.2.13
Go github.com/grafana/grafana ≥ 9.3.0 < 9.3.8 9.3.8 go get github.com/grafana/grafana@v9.3.8

Per OSV / GitHub Advisories (GHSA-hjv9-hm2f-rpcj). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
grafanagrafana≥ 8.1.0 < 8.5.21
grafanagrafana≥ 9.2.0 < 9.2.13
grafanagrafana≥ 9.3.0 < 9.3.8

Official sources

References

Links published by the sources. Open them with care.