Grafana stored XSS in FileUploader component
Grafana is an open-source platform for monitoring and observability. Starting with the 8.1 branch and prior to versions 8.5.16, 9.2.10, and 9.3.4, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap. The stored XSS vulnerability was possible because SVG files weren't properly sanitized and allowed arbitrary JavaScript to be executed in the context of the currently authorized user of the Grafana instance. An attacker needs to have the Editor role in order to change a panel to include either an external URL to a SVG-file containing JavaScript, or use the `data:` scheme to load an inline SVG-file containing 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.16, 9.2.10, or 9.3.4 to receive a fix.
- Published
- Jan 27, 2023
- Updated
- Jun 17, 2026
- EPSS
- 0.8% · 55th percentile
- CWE
- CWE-79
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
21
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.8%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 5.4
- CNA · GitHub_M
- 7.3
- 1.9 point gap
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
| Vendor | Product | CPE |
|---|---|---|
| grafana | grafana | cpe:2.3:a:grafana:grafana |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- grafana grafana8.1.0 and later · before 8.5.16
- grafana grafana9.0.0 and later · before 9.2.10
- grafana grafana9.3.0 and later · before 9.3.4
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
grafana grafana
- >= 9.0, < 9.2.10, >= 9.3, < 9.3.4, >= 8.1, < 8.5.16affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:9 | grafana | before 9.2.10-7.el9_3.alma.1 | 9.2.10-7.el9_3.alma.1 |
| openSUSE:Tumbleweed | grafana | before 8.5.20-1.1 | 8.5.20-1.1 |
| Red Hat:enterprise_linux:9::appstream | grafana | before 0:9.2.10-7.el9_3 | 0:9.2.10-7.el9_3 |
| Red Hat:enterprise_linux:9::appstream | grafana-debuginfo | before 0:9.2.10-7.el9_3 | 0:9.2.10-7.el9_3 |
| Red Hat:enterprise_linux:9::appstream | grafana-debugsource | before 0:9.2.10-7.el9_3 | 0:9.2.10-7.el9_3 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP4 | grafana | before 8.5.20-150200.3.35.1 | 8.5.20-150200.3.35.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP4 | grafana | before 8.5.20-150200.3.35.1 | 8.5.20-150200.3.35.1 |
| SUSE:Manager Client Tools 12 | grafana | before 8.5.20-1.42.1 | 8.5.20-1.42.1 |
| SUSE:Manager Client Tools 12 | spacecmd | before 4.3.19-38.118.1 | 4.3.19-38.118.1 |
| SUSE:Manager Client Tools 12 | spacewalk-client-tools | before 4.3.15-52.86.1 | 4.3.15-52.86.1 |
| SUSE:Manager Client Tools 12-BETA | golang-github-boynux-squid_exporter | before 1.6-4.9.2 | 1.6-4.9.2 |
| SUSE:Manager Client Tools 12-BETA | golang-github-lusitaniae-apache_exporter | before 1.0.0-4.12.4 | 1.0.0-4.12.4 |
| SUSE:Manager Client Tools 12-BETA | golang-github-prometheus-alertmanager | before 0.26.0-4.12.4 | 0.26.0-4.12.4 |
| SUSE:Manager Client Tools 12-BETA | golang-github-prometheus-node_exporter | before 1.5.0-4.15.4 | 1.5.0-4.15.4 |
| SUSE:Manager Client Tools 12-BETA | golang-github-prometheus-prometheus | before 2.45.0-4.33.3 | 2.45.0-4.33.3 |
| SUSE:Manager Client Tools 12-BETA | golang-github-prometheus-promu | before 0.14.0-4.12.2 | 0.14.0-4.12.2 |
| SUSE:Manager Client Tools 12-BETA | golang-github-QubitProducts-exporter_exporter | before 0.4.0-4.6.2 | 0.4.0-4.6.2 |
| SUSE:Manager Client Tools 12-BETA | grafana | before 9.5.8-4.21.2 | 9.5.8-4.21.2 |
| SUSE:Manager Client Tools 12-BETA | kiwi-desc-saltboot | before 0.1.1687520761.cefb248-4.15.2 | 0.1.1687520761.cefb248-4.15.2 |
| SUSE:Manager Client Tools 12-BETA | mgr-push | before 5.0.1-4.21.4 | 5.0.1-4.21.4 |
| SUSE:Manager Client Tools 12-BETA | prometheus-blackbox_exporter | before 0.24.0-3.6.3 | 0.24.0-3.6.3 |
| SUSE:Manager Client Tools 12-BETA | prometheus-postgres_exporter | before 0.10.1-3.6.4 | 0.10.1-3.6.4 |
| SUSE:Manager Client Tools 12-BETA | python-hwdata | before 2.3.5-15.12.2 | 2.3.5-15.12.2 |
| SUSE:Manager Client Tools 12-BETA | rhnlib | before 5.0.1-24.30.3 | 5.0.1-24.30.3 |
+37
Same product
grafana: all recordsOther highest-scoring records for the same primary product.
- CVE-2021-39226Snapshot authentication bypass in grafanaKEV89Now
- CVE-2021-43798Grafana path traversalKEV87Now
- CVE-2024-9264Grafana SQL Expressions allow for remote code execution65This week
- CVE-2020-13379The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue.62This week
- CVE-2018-15727Grafana 2.x, 3.x, and 4.x before 4.6.4 and 5.x before 5.2.3 allows authentication bypass because an attacker can generate a valid "remember 58Plan
- CVE-2022-31097Stored XSS in Grafana's Unified Alerting55Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| grafana grafana | 8.5.16 · description | Vendor (CNA) |
| almalinux:grafana | 9.2.10-7.el9_3.alma.1 · AlmaLinux:9 | Package registry (OSV) |
| opensuse:dracut-saltboot | 0.1.1674034019.a93ff61-150000.1.47.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:grafana | 8.5.20-150200.3.35.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:spacecmd | 4.3.19-150000.3.95.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:supportutils-plugin-salt | 1.2.2-150000.3.13.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| red hat:grafana | 0:9.2.10-7.el9_3 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:grafana-debuginfo | 0:9.2.10-7.el9_3 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:grafana-debugsource | 0:9.2.10-7.el9_3 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| suse:dracut-saltboot | 0.1.1674034019.a93ff61-150000.1.47.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:golang-github-boynux-squid_exporter | 1.6-4.9.2 · SUSE:Manager Client Tools 12-BETA | Package registry (OSV) |
| suse:golang-github-QubitProducts-exporter_exporter | 0.4.0-4.6.2 · SUSE:Manager Client Tools 12-BETA | Package registry (OSV) |
| suse:grafana | 8.5.20-1.42.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:grafana | 8.5.20-150000.1.42.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacecmd | 4.3.19-150000.3.95.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacecmd | 4.3.19-38.118.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:spacewalk-client-tools | 4.3.15-150000.3.77.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacewalk-client-tools | 4.3.15-52.86.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:supportutils-plugin-salt | 1.2.2-150000.3.13.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:uyuni-proxy-systemd-services | 4.3.8-150000.1.12.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP) · grafana/grafana
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP)
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- none
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
nvd-primary
Root cause
User content is inserted into the page as HTML. The browser interprets the content as code rather than data.
The bug in code
The whole CWE-79 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
commentEl.innerHTML = comment.body;Fixed
commentEl.textContent = comment.body;Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/grafana/grafana/commit/1c8a50b36973bd59a1cc5f34c30de8a9a6a431f0
- github.com/grafana/grafana/commit/8b574e22b53aa4c5a35032a58844fd4aaaa12f5f
- github.com/grafana/grafana/commit/c022534e3848a5d45c0b3face23b43aa44e4400a
- github.com/grafana/grafana/pull/62143
- github.com/grafana/grafana/security/advisories/GHSA-8xmm-x63g-f6xv
- security.netapp.com/advisory/ntap-20230302-0008/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.