CVEBrief

Home / prometheus / prometheus / CVE-2026-40179

CVE-2026-40179: is it exploited, and which versions of prometheus are affected and fixed?

CVE-2026-40179 is a cross-site scripting (XSS) vulnerability in prometheus. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: github.com/prometheus/prometheus from 3.0.0 before 3.5.2, github.com/prometheus/prometheus from 3.6.0 before 3.11.2 and github.com/prometheus/prometheus before 0.311.2-0.20260410083055-07c6232d159b (GitHub advisory GHSA-vffh-x6r8-xx99). Fixed in 3.5.2, 3.11.2 and 0.311.2-0.20260410083055-07c6232d159b (GitHub advisory GHSA-vffh-x6r8-xx99). Severity: Medium (5.3, CVSS 4.0, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
github.com/prometheus/prometheus from 3.0.0 before 3.5.2, github.com/prometheus/prometheus from 3.6.0 before 3.11.2 and github.com/prometheus/prometheus before 0.311.2-0.20260410083055-07c6232d159b
GitHub advisory GHSA-vffh-x6r8-xx99
Fixed in
3.5.2, 3.11.2 and 0.311.2-0.20260410083055-07c6232d159b
GitHub advisory GHSA-vffh-x6r8-xx99
Severity
Medium 5.3
CVSS 4.0 from GitHub_M
Exploit odds (EPSS)
0.33% in 30 days
higher than 28% of CVEs; FIRST, December 2, 2026

What is CVE-2026-40179?

Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer

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.

From the CVE record by GitHub_M, last updated April 16, 2026, 14:21 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
prometheusprometheus>= 3.0.0, < 3.5.2
>= 3.6.0, < 3.11.2
< 0.311.2-0.20260410083055-07c6232d159b

As the CVE record by GitHub_M states it, last updated April 16, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
Gogithub.com/prometheus/prometheus>= 3.0.0, < 3.5.23.5.2GHSA-vffh-x6r8-xx99
Gogithub.com/prometheus/prometheus>= 3.6.0, < 3.11.23.11.2GHSA-vffh-x6r8-xx99
Gogithub.com/prometheus/prometheus< 0.311.2-0.20260410083055-07c6232d159b0.311.2-0.20260410083055-07c6232d159bGHSA-vffh-x6r8-xx99

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 6, 2026. Summary: Prometheus has Stored XSS via metric names and label values in Prometheus web UI tooltips and metrics explorer.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
prometheusprometheusfrom 3.0.0 before 3.5.2application
prometheusprometheusfrom 3.6.0 before 3.11.2application

NVD analysis (status Analyzed), last modified June 17, 2026, 10:44 UTC.

How severe is CVE-2026-40179?

ScoreVersionVectorSource
Medium 5.3CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NGitHub_M
Medium 6.1CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-40179 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 16, 2026)
EPSS
0.33% probability of exploitation activity in the next 30 days, percentile 28.1 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
April 9, 2026
Published
April 15, 2026, 22:26 UTC
CVE record updated
April 16, 2026, 14:21 UTC by GitHub_M
NVD
Analyzed, last modified June 17, 2026, 10:44 UTC
Last checked
CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect prometheus?

Every CVE in prometheus

Questions about CVE-2026-40179

Is CVE-2026-40179 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.33% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of prometheus are affected by CVE-2026-40179?

github.com/prometheus/prometheus from 3.0.0 before 3.5.2, github.com/prometheus/prometheus from 3.6.0 before 3.11.2 and github.com/prometheus/prometheus before 0.311.2-0.20260410083055-07c6232d159b, per the GitHub advisory GHSA-vffh-x6r8-xx99. The tables above give every range the sources list.

Which version fixes CVE-2026-40179?

3.5.2, 3.11.2 and 0.311.2-0.20260410083055-07c6232d159b, per the GitHub advisory GHSA-vffh-x6r8-xx99. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-40179?

Medium (5.3, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2026-40179?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.