CVE-2023-22462 json
Stored XSS in Grafana Text plugin
published 2023-03-01 3 y ago modified 2026-09-10 1 mo ago also BIT-grafana-2023-22462 , EUVD-2023-0932 , GHSA-7rqg-hjwc-6mjf
- cvss
- 6.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
Grafana is an open-source platform for monitoring and observability. On 2023-01-01 during an internal audit of Grafana, a member of the security team found a stored XSS vulnerability affecting the core plugin "Text". The stored XSS vulnerability requires several user interactions in order to be fully exploited. The vulnerability was possible due to React's render cycle that will pass though the unsanitized HTML code, but in the next cycle the HTML is cleaned up and saved in Grafana's database. An attacker needs to have the Editor role in order to change a Text panel to include JavaScript. Another user needs to edit the same Text panel, and click on "Markdown" or "HTML" for the code to be executed. 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. This issue has been patched in versions 9.2.10 and 9.3.4.
Patch / fix
- go github.com/grafana/grafana 9.2.10, 9.3.4
- bitnami grafana 9.2.10, 9.3.4
- grafana grafana 9.2.10, 9.3.4
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-22462 updated cvss 6.4
grafana: stored XSS vulnerability affecting the core plugin "Text"
-
Red Hat OpenShift Service Mesh 2.1 servicemesh-grafanaaffected: no fix planned “Will not fix”
-
Red Hat Ceph Storage 3 grafanaaffected: no fix planned “Out of support scope”
-
Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8affected: no fix available
-
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 Storage 3 grafanaaffected: no fix planned “Will not fix”
-
Red Hat Ceph Storage 5.3 Tools rhceph/rhceph-5-dashboard-rhel8 5-83fixed: vendor fix RHSA-2024:0746
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/acm-grafana-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 OpenShift Container Platform 4 openshift4/ose-grafananot affected: vulnerable code not present
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
1.56% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 6.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/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 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/grafana/grafana | >=9.2.0, <9.2.10 >=9.3.0, <9.3.4 |
9.2.10 9.3.4 |
| bitnami | grafana | >=9.2.0, <9.2.10 >=9.3.0, <9.3.4 |
9.2.10 9.3.4 |
Affected products
- grafana grafana
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/grafana/grafana/commit/db83d5f398caffe35c5846cfa7727d1a2a414165
web, patch
-
grafana.com
/blog/2023/02/28/grafana-security-release-new-versions-with-security-fixes-for-cve-2023-0594-cve-2023-0507-and
patch, vendor-advisory, advisory
-
github.com
/grafana/grafana/security/advisories/GHSA-7rqg-hjwc-6mjf
web, vendor-advisory, advisory
-
security.netapp.com
/advisory/ntap-20230413-0004/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-22462
advisory, web
-
github.com
/grafana/grafana
package
-
grafana.com
/blog/2023/02/28/grafana-security-release-new-versions-with-security-fixes-for-cve-2023-0594-cve-2023-0507-and
web
-
security.netapp.com
/advisory/ntap-20230413-0004
web
Sources
- CVE List CVE-2023-22462
- GitHub Advisory GHSA-7rqg-hjwc-6mjf
- NVD CVE-2023-22462
- OSV BIT-grafana-2023-22462
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.