CVE-2026-40179
A public proof of concept exists; no exploitation attested.
- Published2026-04-15
- Fixed in3.11.2 · 3.5.2 · 0.311.2 · 0.311.2-0.20260410083055-07c6232d159b · 0.305.2
- WeaknessCWE-79
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
Prometheus is an open-source monitoring system and time series database. Versions 3.0 through 3.5.1 and 3.6.0 through 3.11.1 have stored cross-site scripting vulnerabilities in multiple components of the Prometheus web UI where metric names and label values are injected into innerHTML without escaping. In both the Mantine UI and old React UI, chart tooltips on the Graph page render metric names containing HTML/JavaScript without sanitization. In the old React UI, the Metric Explorer fuzzy search results use dangerouslySetInnerHTML without escaping, and heatmap cell tooltips interpolate le label values without sanitization. With Prometheus v3.x defaulting to UTF-8 metric and label name validation, characters like <, >, and " are now valid in metric names and labels. An attacker who can inject metrics via a compromised scrape target, remote write, or OTLP receiver endpoint can execute arbitrary JavaScript in the browser of any Prometheus user who views the metric in the Graph UI, potentially enabling configuration exfiltration, data deletion, or Prometheus shutdown depending on enabled flags. This issue has been fixed in versions 3.5.2 and 3.11.2. If developers are unable to immediately update, the following workarounds are recommended: ensure that the remote write receiver (--web.enable-remote-write-receiver) and the OTLP receiver (--web.enable-otlp-receiver) are not exposed to untrusted sources; verify that all scrape targets are trusted and not under attacker control; avoid enabling admin or mutating API endpoints (e.g., --web.enable-admin-api or --web.enable-lifecycle) in environments where untrusted data may be ingested; and refrain from clicking untrusted links, particularly those containing functions such as label_replace, as they may generate poisoned label names and values.
Timeline
dates in UTC- 2026-04-1523:16CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.x | ≥ 3.6.0, < 3.11.2 | 3.11.2 | NVD · OSV |
| 3.x | ≥ 3.0.0, < 3.5.2 | 3.5.2 | NVD · OSV |
| 3.5 | ≥ 1.0.0, < 3.5.2 | 3.5.2 | OSV |
| 0.x | ≥ 0.306.0, < 0.311.2 | 0.311.2 | OSV |
| 0.311 | < 0.311.2-0.20260410083055-07c6232d159b | 0.311.2-0.20260410083055-07c6232d159b | OSV |
| 0.305 | < 0.305.2 | 0.305.2 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- prometheusAffected
- = >= 3.0.0, < 3.5.2no fix stated
- = >= 3.6.0, < 3.11.2no fix stated
- = < 0.311.2-0.20260410083055-07c6232d159bno fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-04-15
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- agentbeatChainguardall versions · fixed in 9.2.7-r4
- agentbeat-fipsChainguardall versions · fixed in 9.2.7-r5
- amazon-cloudwatch-agentMinimOSall versions · no fixed version listedand 209 other packages
- amazon-cloudwatch-agentCleanStartall versions · fixed in 1.300071.0-r1
- amazon-cloudwatch-agent-operatorMinimOSall versions · fixed in 3.5.0-r0and 1 other package
- aws-otel-collectorWolfiall versions · fixed in 0.49.0-r0
- aws-otel-collectorMinimOSall versions · fixed in 0.49.0-r0and 1 other package
- aws-otel-collectorChainguardall versions · fixed in 0.49.0-r0and 1 other package
246 more package ranges on OSV.dev
Fix
- Update Prometheus to 3.11.2 · 3.5.2 · 0.311.2 · 0.311.2-0.20260410083055-07c6232d159b · 0.305.2
Advisories and patches
- github.comPatch
- github.comPatch
- github.comMitigation · Vendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01bsdrip/CVE-2026-40179-PoC
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-04-16
- CNACVSS 4.05.3known since 2026-10-23
- NVDCVSS 3.16.1read 2026-10-23
- CNAweakness (CWE)CWE-79known since 2026-10-23
- FIRST EPSSEPSS score0.3 %2026-11-18
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2026-04-13
- Microsoft MSRCadvisory—
Identifiers
- BIT-prometheus-2026-40179same flawBitnami · Apache-2.0
- CGA-228h-p36v-hq93same flawChainguard · CC-BY-NC-ND-4.0
- CGA-22x9-f439-ch86same flawChainguard · CC-BY-NC-ND-4.0
- CGA-23rw-hhq7-4xmpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2424-8563-6x9csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2492-7c42-7gj2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-253h-cxxh-22jxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2573-pxxv-p3r8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-25qw-6cm9-m3ffsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-27g9-7hh6-2jp2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-27hc-96ph-pjgwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-28hq-2jhf-59h9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-29pg-cfg9-6hpcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2c6c-mrg8-cv33same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2ch2-88xw-pm8vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2f7r-pgwp-f7m9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2h48-rpxg-9hm8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2h9m-jvp9-94grsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2hv4-wp82-p9q9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2hwr-5p24-jp89same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2hxx-hxcf-53gwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2jf3-8j4j-5qpfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2mcr-pcm9-v434same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2mg9-hqhr-q227same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2q25-9v55-995gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2q85-chg7-rr6hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2qcf-92fg-f4pxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2qj5-x4cq-9643same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2qvv-882x-5mq2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2qwj-37m4-6v4qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2r9x-jmvw-wc6qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2rr4-fj5x-rxfqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2v9h-97vq-46fjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2vh7-h4m2-266rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2w65-f65x-m7g4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3286-px52-2gf3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-32v5-5h42-68m7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-32w4-rx4m-5xcjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3384-w4pr-m3x3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-338x-r6jm-h939same flawChainguard · CC-BY-NC-ND-4.0
- CGA-33qg-v34r-789qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-343r-fmm8-c2mfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-357w-2pr9-444csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-35qm-6xv6-w99csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-369h-fp8f-9hvmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-36w8-p386-3mj8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-37fm-8p2x-ppxvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3879-ggmw-vqx5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-396f-8w7h-66vmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3c8x-362x-gprxsame flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS 4.0 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
- Published
- 2026-04-15
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- MSRC Title
- Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer
- GitHub Advisory
- GHSA-vffh-x6r8-xx99
Frequently asked questions
What is CVE-2026-40179?
Is CVE-2026-40179 actively exploited?
What is the CVSS score for CVE-2026-40179?
Running prometheus? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-vffh-x6r8-xx99
- Microsoft MSRC · Microsoft terms of use (personal and non-commercial use) · terms restrict redistribution
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- CISA Vulnrichment · CC0-1.0