A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-40179

CVE-2026-40179: Prometheus Monitoring System XSS Vulnerability

CVE-2026-40179 is a stored XSS vulnerability in Prometheus monitoring system versions 3.0-3.5.1 and 3.6.0-3.11.1. Attackers can inject malicious scripts through metric names to execute JavaScript in user browsers.

Updated: May 14, 2026

CVE-2026-40179 Overview

CVE-2026-40179 is a stored cross-site scripting (XSS) vulnerability [CWE-79] affecting the Prometheus open-source monitoring system and time series database. The flaw exists in multiple components of the Prometheus web UI, where metric names and label values are injected into innerHTML without escaping. Affected versions include Prometheus 3.0 through 3.5.1 and 3.6.0 through 3.11.1. The vulnerability is triggered when a Prometheus user views a graph containing attacker-controlled metric names or labels. Prometheus v3.x defaults to UTF-8 metric and label name validation, allowing characters such as <, >, and " in metric identifiers. The issue was fixed in versions 3.5.2 and 3.11.2.

Critical Impact

Attackers who can inject metrics via a compromised scrape target, remote write, or OTLP receiver can execute arbitrary JavaScript in any user's browser viewing the Graph UI, enabling configuration exfiltration, data deletion, or Prometheus shutdown depending on enabled flags.

Affected Products

  • Prometheus 3.0 through 3.5.1
  • Prometheus 3.6.0 through 3.11.1
  • Prometheus web UI components (Mantine UI and legacy React UI)

Discovery Timeline

  • 2026-04-15 - CVE-2026-40179 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40179

Vulnerability Analysis

The vulnerability stems from unsafe rendering of user-controllable data in the Prometheus web UI. Chart tooltips on the Graph page in both the Mantine UI and the legacy React UI render metric names containing HTML and JavaScript without sanitization. In the legacy React UI, the Metric Explorer fuzzy search results use React's dangerouslySetInnerHTML without escaping inputs. Heatmap cell tooltips also interpolate le label values without sanitization.

Because Prometheus v3.x adopts UTF-8 validation by default for metric and label names, characters previously restricted such as <, >, and " are now valid identifiers. Stored payloads persist within the time series database and execute when any authenticated operator renders the affected views.

Root Cause

The root cause is missing output encoding when constructing HTML strings from metric names and label values. Affected helper functions in web/ui/mantine-ui/src/pages/query/uPlotChartHelpers.ts and web/ui/react-app/src/pages/graph/GraphHelpers.ts concatenated label keys and the __name__ label directly into template strings assigned to innerHTML.

Attack Vector

An attacker injects malicious metric names or label values through any ingestion path: a compromised scrape target, the remote write receiver (--web.enable-remote-write-receiver), or the OTLP receiver (--web.enable-otlp-receiver). When a Prometheus user later opens a graph or metric explorer that surfaces the poisoned series, the payload executes in the operator's browser session. If the admin API (--web.enable-admin-api) or lifecycle API (--web.enable-lifecycle) is enabled, the attacker can leverage the session to delete time series data or shut down the Prometheus instance.

typescript
// Security patch in web/ui/react-app/src/pages/graph/GraphHelpers.ts
const formatLabels = (labels: { [key: string]: string }): string => `
    <div class="labels">
      ${Object.keys(labels).length === 0 ? '<div class="mb-1 font-italic">no labels</div>' : ''}
-     ${labels['__name__'] ? `<div class="mb-1"><strong>${labels['__name__']}</strong></div>` : ''}
+     ${labels['__name__'] ? `<div class="mb-1"><strong>${escapeHTML(labels['__name__'])}</strong></div>` : ''}
      ${Object.keys(labels)
        .filter((k) => k !== '__name__')
-       .map((k) => `<div class="mb-1"><strong>${k}</strong>: ${escapeHTML(labels[k])}</div>`)
+       .map((k) => `<div class="mb-1"><strong>${escapeHTML(k)}</strong>: ${escapeHTML(labels[k])}</div>`)
        .join('')}
    </div>`;

-<span>${labels.__name__ || 'value'}: <strong>${yval}</strong></span>
+<span>${labels.__name__ ? escapeHTML(labels.__name__) : 'value'}: <strong>${yval}</strong></span>

Source: Prometheus security patch commit 07c6232. The fix wraps every label key and value, including the __name__ series identifier, with escapeHTML() before interpolation into template strings.

Detection Methods for CVE-2026-40179

Indicators of Compromise

  • Metric names or label values containing HTML control characters such as <, >, ", ', or substrings like <script, onerror=, javascript:.
  • Unexpected outbound HTTP requests originating from operator browsers shortly after viewing the Prometheus Graph UI.
  • Unauthorized invocations of /api/v1/admin/tsdb/delete_series or /-/quit endpoints correlated with operator browser sessions.
  • PromQL queries referencing label_replace in URLs shared from untrusted sources.

Detection Strategies

  • Query the Prometheus /api/v1/label/__name__/values and /api/v1/labels endpoints and alert on label names or values containing HTML metacharacters.
  • Inspect remote write and OTLP ingest logs for series whose identifiers fail strict legacy regex [a-zA-Z_:][a-zA-Z0-9_:]*.
  • Review browser console errors and Content Security Policy violation reports from clients accessing the Prometheus UI.

Monitoring Recommendations

  • Track the Prometheus server version and flag any instance running 3.0–3.5.1 or 3.6.0–3.11.1.
  • Audit which flags are enabled, particularly --web.enable-remote-write-receiver, --web.enable-otlp-receiver, --web.enable-admin-api, and --web.enable-lifecycle.
  • Monitor authentication and network reachability of scrape targets to identify compromised exporters that could push poisoned metrics.

How to Mitigate CVE-2026-40179

Immediate Actions Required

  • Upgrade Prometheus to version 3.5.2 or 3.11.2, which contain the escapeHTML() fix.
  • Restrict network exposure of the remote write receiver and OTLP receiver to trusted ingestion sources only.
  • Disable the admin and lifecycle APIs in environments where untrusted metric data may be ingested.
  • Review existing time series for label names or values containing HTML metacharacters and purge poisoned series.

Patch Information

The vulnerability is resolved in Prometheus 3.5.2 and 3.11.2. The upstream fix is published in Prometheus Pull Request #18506 and described in GitHub Security Advisory GHSA-vffh-x6r8-xx99. The remediation applies escapeHTML() to all label keys, label values, and the __name__ identifier before they are interpolated into UI templates.

Workarounds

  • Ensure --web.enable-remote-write-receiver and --web.enable-otlp-receiver are not exposed to untrusted sources.
  • Verify that all scrape targets are trusted and not under attacker control.
  • Avoid enabling --web.enable-admin-api or --web.enable-lifecycle where untrusted data may be ingested.
  • Refrain from clicking untrusted Prometheus links, particularly those containing label_replace, which can generate poisoned label names and values.
bash
# Recommended hardened startup flags for Prometheus
prometheus \
  --config.file=/etc/prometheus/prometheus.yml \
  --storage.tsdb.path=/var/lib/prometheus \
  --web.listen-address=127.0.0.1:9090 \
  --web.external-url=https://prometheus.internal.example.com \
  # Do NOT enable the following in untrusted environments:
  # --web.enable-remote-write-receiver
  # --web.enable-otlp-receiver
  # --web.enable-admin-api
  # --web.enable-lifecycle

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechPrometheus

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Pull Request #18506

  • GitHub Security Advisory GHSA-vffh-x6r8-xx99
  • Related CVEs
  • CVE-2026-44903: Prometheus Legacy UI XSS Vulnerability

  • CVE-2026-42151: Prometheus Information Disclosure Flaw

  • CVE-2026-42154: Prometheus DOS Vulnerability

  • CVE-2022-21698: Prometheus Client Golang DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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