cve.bz

CVE-2023-0594 grafana grafana: Cross-site Scripting

5.4 mediumEPSS 9.2%Fix available

Medium (5.4) in grafana grafana. EPSS 9.2% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/grafana/grafana 8.5.21, 9.2.13, 9.3.8.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS
9.2% (unchanged from 9.2% a week ago; 9.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-01-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-0594 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-0594?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-0594?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-0594 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Grafanafrom 7.0.0 before 8.5.21
Grafanafrom 9.0.0 before 9.2.13
Grafanafrom 9.3.0 before 9.3.8
Grafana Enterprisefrom 7.0.0 before 8.5.21
Grafana Enterprisefrom 9.0.0 before 9.2.13
Grafana Enterprisefrom 9.3.0 before 9.3.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xw5p-hw8j-xg4qGogithub.com/grafana/grafana>=7.0.0 <8.5.218.5.21
GHSA-xw5p-hw8j-xg4qGogithub.com/grafana/grafana>=9.0.0 <9.2.139.2.13
GHSA-xw5p-hw8j-xg4qGogithub.com/grafana/grafana>=9.3.0 <9.3.89.3.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSgrafanano fix listedUBUNTU-CVE-2023-0594
SUSELinux Enterprise Module for Package Hub 15 SP4grafana8.5.22-150200.3.38.1SUSE-SU-2023:1904-1
SUSEManager Client Tools 12grafana8.5.22-1.45.1SUSE-SU-2023:1902-1
SUSEManager Client Tools 12-BETAgolang-github-QubitProducts-exporter_exporter0.4.0-4.6.2SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-boynux-squid_exporter1.6-4.9.2SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-lusitaniae-apache_exporter1.0.0-4.12.4SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-prometheus-alertmanager0.26.0-4.12.4SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-prometheus-node_exporter1.5.0-4.15.4SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-prometheus-prometheus2.45.0-4.33.3SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-prometheus-promu0.14.0-4.12.2SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgrafana9.5.8-4.21.2SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAkiwi-desc-saltboot0.1.1687520761.cefb248-4.15.2SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAmgr-push5.0.1-4.21.4SUSE-SU-2024:0191-1
29 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4grafana8.5.22-150200.3.38.1SUSE-SU-2023:1904-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an issue with Grafana Tempo which we don't ship in Red Hat Enterprise Linux. Hence, RHEL-8, 9 are not-affected.

Red Hat's mitigation

Applying the Content-Security-Policy shipped with Grafana would block inline scripts from executing and would mitigate this.

ProductPackageStateAdvisory
Red Hat Ceph Storage 5.3rhceph/rhceph-5-dashboard-rhel8:5-83Fixed 2024-02-08RHSA-2024:0746
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-grafana-rhel8Affected
Red Hat Ceph Storage 3grafanaNot affected
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Not affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaNot affected
Red Hat Storage 3grafanaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-0594.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON