CVE-2023-0594 json
Grafana vulnerable to Cross-site Scripting
published 2023-03-01 3 y ago modified 2026-09-10 59 d ago also BIT-grafana-2023-0594 , EUVD-2023-1146 , GHSA-xw5p-hw8j-xg4q
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 9.2%
- EPSS 9.2% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/grafana/grafana 8.5.21, 9.2.13, 9.3.8
- bitnami grafana 8.5.21, 9.2.13, 9.3.8
- Grafana Grafana 8.5.21, 9.2.13, 9.3.8
- Grafana Grafana Enterprise 8.5.21, 9.2.13, 9.3.8
- rhnlib Manager Client Tools 15-BETA 5.0.1-159000.6.30.1
- ansible Manager Client Tools 15-BETA 2.9.27-159000.3.9.1
- grafana Manager Client Tools 15-BETA 9.5.8-159000.4.24.1
- mgr-push Manager Client Tools 15-BETA 5.0.1-159000.4.21.1
- spacecmd Manager Client Tools 15-BETA 5.0.1-159000.6.42.1
- python-hwdata Manager Client Tools 15-BETA 2.3.5-159000.5.13.1
- python-pyvmomi Manager Client Tools 15-BETA 6.7.3-159000.3.6.1
- dracut-saltboot Manager Client Tools Beta for SLE Micro 5, Manager Client Tools 15-BETA 0.1.1681904360.84ef141-159000.3.30.1
suse advisories SUSE-SU-2024:0196-1SUSE-SU-2024:0191-1SUSE-SU-2023:1904-1SUSE-SU-2023:1903-1SUSE-SU-2023:1902-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-0594 updated cvss 7.3
grafana: cross site scripting
-
Red Hat OpenShift Service Mesh 2.1 servicemesh-grafanaaffected: workaround, no fix planned “Applying the Content-Security-Policy shipped with Grafana would block inline scripts from executing and would mitigate this.”
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/acm-grafana-rhel8affected: workaround, no fix available “Applying the Content-Security-Policy shipped with Grafana would block inline scripts from executing and would mitigate this.”
-
Red Hat Ceph Storage 5.3 Tools rhceph/rhceph-5-dashboard-rhel8 5-83fixed: vendor fix “Applying the Content-Security-Policy shipped with Grafana would block inline scripts from executing and would mitigate this.” RHSA-2024:0746
-
Red Hat Ceph Storage 3 grafana Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat Ceph Storage 5.3 Tools rhceph/rhceph-5-rhel8 5-499, rhceph/keepalived-rhel8 2.1.5-39, rhceph/snmp-notifier-rhel8 1.2.1-50, rhceph/rhceph-haproxy-rhel8 2.2.19-32 Red Hat Enterprise Linux 8 grafana, grafana-loki, grafana-mssql, grafana-mysql, grafana-selinux, grafana-graphite, +8 more Red Hat Enterprise Linux 9 grafana, grafana-selinux Red Hat OpenShift Container Platform 4 openshift4/ose-grafananot affected: vulnerable code not present
+1 more productsfewer
Red Hat Storage 3 grafana
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 9 mo ago
Exploit prediction
9.22% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/grafana/grafana | >=7.0.0, <8.5.21 >=9.0.0, <9.2.13 >=9.3.0, <9.3.8 |
8.5.21 9.2.13 9.3.8 |
| bitnami | grafana | >=7.0.0, <8.5.21 >=9.2.0, <9.2.13 >=9.3.0, <9.3.8 |
8.5.21 9.2.13 9.3.8 |
Affected products
- Grafana Grafana
- Grafana Grafana Enterprise
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
grafana.com
/security/security-advisories/cve-2023-0594/
vendor-advisory, advisory
-
security.netapp.com
/advisory/ntap-20230331-0007/
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-0594
advisory, web
-
github.com
/grafana/grafana
package
-
grafana.com
/security/security-advisories/cve-2023-0594
web
Sources
- CVE List CVE-2023-0594
- GitHub Advisory GHSA-xw5p-hw8j-xg4q
- NVD CVE-2023-0594
- OSV BIT-grafana-2023-0594
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.