Skip to content
Noroxi
CVE-2022-23552· NVD / CVE Program· CNA GitHub_M

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.

MediumCVSS 5.4 · v3.1—No exploit Fix available
Published
Jan 27, 2023
Updated
Jun 17, 2026
EPSS
0.8% · 55th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

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 help

Affected systems

VendorProduct
grafanagrafana

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.

EcosystemPackageAffected rangeFix
AlmaLinux:9grafanabefore 9.2.10-7.el9_3.alma.19.2.10-7.el9_3.alma.1
openSUSE:Tumbleweedgrafanabefore 8.5.20-1.18.5.20-1.1
Red Hat:enterprise_linux:9::appstreamgrafanabefore 0:9.2.10-7.el9_30:9.2.10-7.el9_3
Red Hat:enterprise_linux:9::appstreamgrafana-debuginfobefore 0:9.2.10-7.el9_30:9.2.10-7.el9_3
Red Hat:enterprise_linux:9::appstreamgrafana-debugsourcebefore 0:9.2.10-7.el9_30:9.2.10-7.el9_3
SUSE:Linux Enterprise Module for Package Hub 15 SP4grafanabefore 8.5.20-150200.3.35.18.5.20-150200.3.35.1
SUSE:Linux Enterprise Module for Package Hub 15 SP4grafanabefore 8.5.20-150200.3.35.18.5.20-150200.3.35.1
SUSE:Manager Client Tools 12grafanabefore 8.5.20-1.42.18.5.20-1.42.1
SUSE:Manager Client Tools 12spacecmdbefore 4.3.19-38.118.14.3.19-38.118.1
SUSE:Manager Client Tools 12spacewalk-client-toolsbefore 4.3.15-52.86.14.3.15-52.86.1
SUSE:Manager Client Tools 12-BETAgolang-github-boynux-squid_exporterbefore 1.6-4.9.21.6-4.9.2
SUSE:Manager Client Tools 12-BETAgolang-github-lusitaniae-apache_exporterbefore 1.0.0-4.12.41.0.0-4.12.4
SUSE:Manager Client Tools 12-BETAgolang-github-prometheus-alertmanagerbefore 0.26.0-4.12.40.26.0-4.12.4
SUSE:Manager Client Tools 12-BETAgolang-github-prometheus-node_exporterbefore 1.5.0-4.15.41.5.0-4.15.4
SUSE:Manager Client Tools 12-BETAgolang-github-prometheus-prometheusbefore 2.45.0-4.33.32.45.0-4.33.3
SUSE:Manager Client Tools 12-BETAgolang-github-prometheus-promubefore 0.14.0-4.12.20.14.0-4.12.2
SUSE:Manager Client Tools 12-BETAgolang-github-QubitProducts-exporter_exporterbefore 0.4.0-4.6.20.4.0-4.6.2
SUSE:Manager Client Tools 12-BETAgrafanabefore 9.5.8-4.21.29.5.8-4.21.2
SUSE:Manager Client Tools 12-BETAkiwi-desc-saltbootbefore 0.1.1687520761.cefb248-4.15.20.1.1687520761.cefb248-4.15.2
SUSE:Manager Client Tools 12-BETAmgr-pushbefore 5.0.1-4.21.45.0.1-4.21.4
SUSE:Manager Client Tools 12-BETAprometheus-blackbox_exporterbefore 0.24.0-3.6.30.24.0-3.6.3
SUSE:Manager Client Tools 12-BETAprometheus-postgres_exporterbefore 0.10.1-3.6.40.10.1-3.6.4
SUSE:Manager Client Tools 12-BETApython-hwdatabefore 2.3.5-15.12.22.3.5-15.12.2
SUSE:Manager Client Tools 12-BETArhnlibbefore 5.0.1-24.30.35.0.1-24.30.3

+37

Other highest-scoring records for the same primary product.

  • CVE-2021-39226Snapshot authentication bypass in grafanaKEV
    89Now
  • CVE-2021-43798Grafana path traversalKEV
    87Now
  • CVE-2024-9264Grafana SQL Expressions allow for remote code execution
    65This 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 Alerting
    55Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
grafana grafana8.5.16 · descriptionVendor (CNA)
almalinux:grafana9.2.10-7.el9_3.alma.1 · AlmaLinux:9Package registry (OSV)
opensuse:dracut-saltboot0.1.1674034019.a93ff61-150000.1.47.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:grafana8.5.20-150200.3.35.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:spacecmd4.3.19-150000.3.95.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:supportutils-plugin-salt1.2.2-150000.3.13.1 · openSUSE:Leap 15.4Package registry (OSV)
red hat:grafana0:9.2.10-7.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:grafana-debuginfo0:9.2.10-7.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:grafana-debugsource0:9.2.10-7.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
suse:dracut-saltboot0.1.1674034019.a93ff61-150000.1.47.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:golang-github-boynux-squid_exporter1.6-4.9.2 · SUSE:Manager Client Tools 12-BETAPackage registry (OSV)
suse:golang-github-QubitProducts-exporter_exporter0.4.0-4.6.2 · SUSE:Manager Client Tools 12-BETAPackage registry (OSV)
suse:grafana8.5.20-1.42.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:grafana8.5.20-150000.1.42.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacecmd4.3.19-150000.3.95.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacecmd4.3.19-38.118.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:spacewalk-client-tools4.3.15-150000.3.77.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacewalk-client-tools4.3.15-52.86.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:supportutils-plugin-salt1.2.2-150000.3.13.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:uyuni-proxy-systemd-services4.3.8-150000.1.12.1 · SUSE:Manager Client Tools 15Package 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.

EPSS, last 120 days

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.

Finders, 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.

—

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

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.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
commentEl.innerHTML = comment.body;

Fixed

ts
commentEl.textContent = comment.body;

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records