CVE-2023-0594Grafana
Medium 5.4
Follow: this CVE · Grafana · Grafana We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Grafana.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| grafana | grafana | ≥ 7.0.0 < 8.5.21 |
| grafana | grafana | ≥ 9.2.0 < 9.2.13 |
| grafana | grafana | ≥ 9.3.0 < 9.3.8 |
Official sources
References
Links published by the sources. Open them with care.
- grafana.com Vendor Advisory
- security.netapp.com