Live threats

All CVEs / Grafana

CVE-2023-0594Grafana

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.8%
probability of exploitation in 30 days · percentile 52
Auth required
Yes
Published
Mar 1, 2023
Updated
Jun 17, 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 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. The stored XSS vulnerability was possible due the value of a span's attributes/resources were not properly sanitized and this will be rendered when the span's attributes/resources are expanded. An attacker needs to have the Editor role in order to change the value of a trace view visualization to contain 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 ≥ 7.0.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-xw5p-hw8j-xg4q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
grafanagrafana≥ 7.0.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.