CVE-2023-0594
MEDIUM 5.4CVSS 3.1Grafana vulnerable to Cross-site Scripting
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.
- Published
- 1 Mar 2023
- Last modified
- 7 Aug 2026
- Assigned by
- security@grafana.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- BIT-grafana-2023-0594GHSA-xw5p-hw8j-xg4q
- Sources
- NVDJSONOSV GHSA-xw5p-hw8j-xg4qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@grafana.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* |
>= 7.0.0, < 8.5.21 | 8.5.21 |
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* |
>= 9.2.0, < 9.2.13 | 9.2.13 |
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* |
>= 9.3.0, < 9.3.8 | 9.3.8 |
| OSV | Go | github.com/grafana/grafana | >= 7.0.0, < 8.5.21 | 8.5.21 |
| OSV | Go | github.com/grafana/grafana | >= 9.0.0, < 9.2.13 | 9.2.13 |
| OSV | Go | github.com/grafana/grafana | >= 9.3.0, < 9.3.8 | 9.3.8 |
References
- https://grafana.com/security/security-advisories/cve-2023-0594/ · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20230331-0007/
- https://nvd.nist.gov/vuln/detail/CVE-2023-0594 · ADVISORY
- https://github.com/grafana/grafana · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 1 Mar 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Mar 2023)