The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-23552

CVE-2022-23552: Grafana GeoMap Plugin XSS Vulnerability

CVE-2022-23552 is a stored cross-site scripting vulnerability in Grafana's GeoMap plugin that enables privilege escalation through malicious SVG files. This article covers technical details, affected versions, and patches.

Published: February 17, 2026

CVE-2022-23552 Overview

CVE-2022-23552 is a stored Cross-Site Scripting (XSS) vulnerability affecting Grafana, the popular open-source platform for monitoring and observability. The vulnerability exists in the core GeoMap plugin and allows attackers to execute arbitrary JavaScript in the context of authenticated users by exploiting improper SVG file sanitization.

Critical Impact

An attacker with Editor role privileges can achieve vertical privilege escalation by injecting malicious JavaScript through unsanitized SVG files, potentially compromising accounts with Admin role privileges when they view a malicious dashboard.

Affected Products

  • Grafana versions 8.1 through 8.5.15
  • Grafana versions 9.0.0 through 9.2.9
  • Grafana versions 9.3.0 through 9.3.3

Discovery Timeline

  • 2023-01-27 - CVE-2022-23552 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-23552

Vulnerability Analysis

This stored XSS vulnerability arises from Grafana's failure to properly sanitize SVG files loaded into the GeoMap plugin. SVG files can contain embedded JavaScript code within tags such as <script> elements or event handlers like onload, which execute when the browser renders the SVG content. Because the GeoMap panel component did not apply proper sanitization before rendering SVG content, malicious scripts embedded within these files were executed in the browser context of any user viewing the affected dashboard.

The vulnerability is particularly dangerous because it enables vertical privilege escalation. An attacker with the lower-privileged Editor role can craft a malicious dashboard panel that, when viewed by an Admin user, executes JavaScript capable of performing administrative actions or exfiltrating session credentials.

Root Cause

The root cause of CVE-2022-23552 is the absence of a sanitization step when processing SVG content in Grafana's rendering pipeline. The application accepted SVG files from external URLs or inline data: scheme URIs without filtering out potentially dangerous elements like embedded scripts or event handlers. This oversight allowed arbitrary JavaScript execution when the SVG was rendered in a user's browser session.

Attack Vector

An attacker requires the Editor role within a Grafana instance to exploit this vulnerability. The attack proceeds as follows:

  1. The attacker creates or modifies a GeoMap panel configuration
  2. The panel is configured to load an SVG file containing malicious JavaScript, either via an external URL pointing to an attacker-controlled server or through an inline data: URI
  3. When a privileged user (such as an Admin) views the dashboard containing the malicious panel, the embedded JavaScript executes in their browser context
  4. The malicious script can then perform actions with the victim's privileges, such as changing passwords, creating new admin accounts, or exfiltrating sensitive data
text
// Security patch adding DOMPurify sanitization (SanitizedSVG.tsx)
+import * as DOMPurify from 'dompurify';
+import React from 'react';
+import SVG, { Props } from 'react-inlinesvg';
+
+export const SanitizedSVG = (props: Props) => {
+  return <SVG {...props} cacheRequests={true} preProcessor={getCleanSVG} />;
+};
+
+let cache = new Map<string, string>();
+
+function getCleanSVG(code: string): string {
+  let clean = cache.get(code);
+  if (!clean) {
+    clean = DOMPurify.sanitize(code, { USE_PROFILES: { svg: true, svgFilters: true } });
+    cache.set(code, clean);
+  }
+  return clean;
+}

Source: Grafana Commit

Detection Methods for CVE-2022-23552

Indicators of Compromise

  • Dashboard configurations containing GeoMap panels with external SVG URLs pointing to untrusted domains
  • GeoMap panel configurations using data: scheme URIs containing base64-encoded or inline SVG content
  • Grafana access logs showing requests to external SVG resources from the GeoMap plugin
  • Unusual administrative actions occurring shortly after dashboard views by privileged users

Detection Strategies

  • Review Grafana dashboard JSON configurations for GeoMap panels referencing external URLs or data: scheme SVG content
  • Monitor Grafana audit logs for Editor-role users creating or modifying GeoMap panels with suspicious SVG sources
  • Implement Content Security Policy (CSP) headers to restrict script execution sources
  • Use web application firewalls to detect and block requests containing inline SVG payloads with script elements

Monitoring Recommendations

  • Enable and centralize Grafana access and audit logs for security monitoring
  • Alert on dashboard modifications by Editor-role users that include external URL references
  • Monitor for network connections from Grafana servers to unexpected external domains
  • Implement browser-based XSS detection mechanisms for users accessing Grafana dashboards

How to Mitigate CVE-2022-23552

Immediate Actions Required

  • Upgrade Grafana to version 8.5.16, 9.2.10, or 9.3.4 or later immediately
  • Audit existing dashboards for GeoMap panels containing external SVG URLs or inline SVG content
  • Review recent dashboard modifications made by users with Editor role for suspicious changes
  • Consider temporarily restricting Editor role access until patching is complete

Patch Information

Grafana has released security patches that introduce DOMPurify-based sanitization for all SVG content. The fix adds a preprocessing step that strips potentially dangerous elements from SVG files before rendering. The patches are available in versions 8.5.16, 9.2.10, and 9.3.4. Organizations should upgrade to these versions or later as soon as possible.

For detailed patch information, refer to the Grafana Security Advisory and the official pull request.

Workarounds

  • Restrict the Editor role to trusted users only until patches can be applied
  • Implement a Content Security Policy that blocks inline script execution and limits script sources
  • Use a reverse proxy or WAF to filter requests containing data: scheme SVG content
  • Disable or remove the GeoMap plugin if it is not required in your environment
bash
# Example: Review Grafana dashboards for potentially malicious SVG references
grep -r "geomap" /var/lib/grafana/dashboards/ | grep -E "(http://|https://|data:)"

# Check Grafana version to determine if upgrade is needed
grafana-cli --version

# Upgrade Grafana (Debian/Ubuntu)
sudo apt-get update && sudo apt-get install grafana=9.3.4

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechGrafana

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.34%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory

  • NetApp Security Advisory
  • Vendor Resources
  • Grafana Commit Update

  • Grafana Commit Update

  • Grafana Commit Update

  • Grafana Pull Request
  • Related CVEs
  • CVE-2026-32117: Grafana Cubism Panel XSS Vulnerability

  • CVE-2025-41117: Grafana Explore Traces XSS Vulnerability

  • CVE-2025-4123: Grafana XSS Vulnerability via Redirect

  • CVE-2025-6023: Grafana OSS Open Redirect XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English