CVE-2026-40179: Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer
Noroxi assessment
Priority: Monitor (action score 21/100)
- Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.25% (FIRST EPSS).
- Anyone who can reach it over the internet can trigger it. No account or password is required. No special conditions are required; it is repeatable.
- Fixed version: cbl2 prometheus 2.37.9-7 on CBL-Mariner 2.0 Release Notes.
Low priority for now. Upgrade to cbl2 prometheus 2.37.9-7 on CBL-Mariner 2.0 Release Notes or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Apr 15, 2026
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 17th percentile
- CWE
- CWE-79
Report tools
Action score
21
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · GitHub_M
- 5.3
- NVD has not scored this yet; the score shown is the CNA’s.
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
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| prometheus | prometheus | cpe:2.3:a:prometheus:prometheus |
Limit the impact of XSS
This is a cross-site scripting (XSS) vulnerability. A well-configured Content-Security-Policy doesn't fix it, but greatly reduces its impact. Check your site's CSP and other security headers for free.
Check security headersAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- prometheus prometheus3.0.0 and later · before 3.5.2
- prometheus prometheus3.6.0 and later · before 3.11.2
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.
prometheus prometheus
- >= 3.0.0, < 3.5.2, >= 3.6.0, < 3.11.2, < 0.311.2-0.20260410083055-07c6232d159baffected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Go | github.com/prometheus/prometheus | from 3.0.0 · before 3.5.2 | 3.5.2 |
| Go | github.com/prometheus/prometheus | from 3.6.0 · before 3.11.2 | 3.11.2 |
| Go | github.com/prometheus/prometheus | before 0.311.2-0.20260410083055-07c6232d159b | 0.311.2-0.20260410083055-07c6232d159b |
| openSUSE:Tumbleweed | golang-github-prometheus-prometheus | before 3.11.2-1.1 | 3.11.2-1.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | dracut-saltboot | before 1.2.1-150002.3.9.1 | 1.2.1-150002.3.9.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | golang-github-boynux-squid_exporter | before 1.13.0-150002.3.6.2 | 1.13.0-150002.3.6.2 |
| SUSE:Multi Linux Manager Tools SLE-15 | golang-github-lusitaniae-apache_exporter | before 1.0.10-150002.3.9.2 | 1.0.10-150002.3.9.2 |
| SUSE:Multi Linux Manager Tools SLE-15 | golang-github-prometheus-alertmanager | before 0.28.1-150002.4.11.1 | 0.28.1-150002.4.11.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | golang-github-prometheus-node_exporter | before 1.10.2-150002.3.6.2 | 1.10.2-150002.3.6.2 |
| SUSE:Multi Linux Manager Tools SLE-15 | golang-github-prometheus-prometheus | before 3.5.3-150002.3.13.1 | 3.5.3-150002.3.13.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | golang-github-QubitProducts-exporter_exporter | before 0.4.0-150002.3.6.2 | 0.4.0-150002.3.6.2 |
| SUSE:Multi Linux Manager Tools SLE-15 | grafana | before 11.6.14+security04-150002.4.21.1 | 11.6.14+security04-150002.4.21.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | mgr-push | before 5.2.4-150002.3.9.1 | 5.2.4-150002.3.9.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | prometheus-blackbox_exporter | before 0.26.0-150002.3.11.1 | 0.26.0-150002.3.11.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | prometheus-postgres_exporter | before 0.10.1-150002.3.3.2 | 0.10.1-150002.3.3.2 |
| SUSE:Multi Linux Manager Tools SLE-15 | python-defusedxml-sle15 | before 0.7.1-150002.1.3.1 | 0.7.1-150002.1.3.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | rhnlib | before 5.2.5-150002.3.9.1 | 5.2.5-150002.3.9.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | spacecmd | before 5.2.8-150002.3.12.1 | 5.2.8-150002.3.12.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | spacewalk-client-tools | before 5.2.6-150002.3.9.1 | 5.2.6-150002.3.9.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | supportutils-plugin-salt | before 1.2.3-150002.3.3.1 | 1.2.3-150002.3.3.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | supportutils-plugin-susemanager-client | before 5.2.3-150002.3.9.1 | 5.2.3-150002.3.9.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | uyuni-common-libs | before 5.2.5-150002.3.6.1 | 5.2.5-150002.3.6.1 |
| SUSE:Multi Linux Manager Tools SLE-15 | uyuni-tools | before 5.2.12-150002.3.17.1 | 5.2.12-150002.3.17.1 |
| SUSE:Multi-Linux Manager Proxy Extension for SLE 5.1 | suse-multi-linux-manager-5.1-aarch64-proxy-httpd-image | before 5.1.4-8.22.22 | 5.1.4-8.22.22 |
+44
Same product
prometheus: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-42154Prometheus: remote read endpoint allows denial of service via crafted snappy payload30Monitor
- CVE-2026-42151Prometheus Azure AD remote write OAuth client secret exposed via config API30Monitor
- CVE-2021-29622Arbitrary redirects under /new endpoint30Monitor
Published before and after this one in the same product
- ← EarlierCVE-2019-3826Mar 26, 2019 · A stored, DOM based, cross-site scripting (XSS) flaw was found in Prometheus before version 2.7.1.25Monitor
- Later →CVE-2026-44903May 26, 2026 · Prometheus: Stored XSS via crafted histogram bucket label values in the heatmap display of the old Prometheus web UI20Monitor
- Later →CVE-2026-119566Oct 30, 2026 · Prometheus through 3.15.1 Credential Leak via remote_write Cross-Host Redirects25Monitor
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 |
|---|---|---|
| cbl2 prometheus 2.37.9-7 on CBL-Mariner 2.0 | Release Notes | Microsoft (MSRC) |
| Go:github.com/prometheus/prometheus | 0.311.2-0.20260410083055-07c6232d159b | Package registry (OSV) |
| Go:github.com/prometheus/prometheus | 3.11.2 | Package registry (OSV) |
| Go:github.com/prometheus/prometheus | 3.5.2 | Package registry (OSV) |
| opensuse:golang-github-prometheus-prometheus | 3.11.2-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:dracut-saltboot | 1.2.1-150002.3.9.1 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:golang-github-boynux-squid_exporter | 1.13.0-150002.3.6.2 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:golang-github-lusitaniae-apache_exporter | 1.0.10-150002.3.9.2 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:golang-github-prometheus-alertmanager | 0.28.1-150002.4.11.1 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:golang-github-prometheus-node_exporter | 1.10.2-150002.3.6.2 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:golang-github-prometheus-prometheus | 3.5.3-150002.3.13.1 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:golang-github-QubitProducts-exporter_exporter | 0.4.0-150002.3.6.2 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:grafana | 11.6.14+security04-150002.4.21.1 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:mgr-push | 5.2.4-150002.3.9.1 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:prometheus-blackbox_exporter | 0.26.0-150002.3.11.1 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:prometheus-postgres_exporter | 0.10.1-150002.3.3.2 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
| suse:python-defusedxml-sle15 | 0.7.1-150002.1.3.1 · SUSE:Multi Linux Manager Tools SLE-15 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:1 | 2026-08-19 |
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.
- Published
- First PoC+125 d
- TodayNov 1, 2026+200 d
No history yet (it accumulates with the daily EPSS job).
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.
- CVE-2026-4490341 days apartPrometheus: Stored XSS via crafted histogram bucket label values in the heatmap display of the old Prometheus web UI20Monitor
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
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- P
- Scope
- X
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')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
nvd-secondary
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
Show all references (2 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.