Skip to main content
CVE-2026-40179VulnerabilityPublished Updated

prometheus · Versions 3.0 through 3.5.1 and 3.6.0 through 3.11.1 have stored cross-site scripting vulnerabilities in multiple

Affects prometheusSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.1 Medium · fixed in 3.5.2 : update prometheus when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.5.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10prometheuspkg:deb/ubuntu/prometheus?arch=source&distro=stonkingOther threatsAffected
  • =2.53.5+ds1-3
  • =3.5.3+ds1-3
  • =3.5.3+ds1-5
Fixed in–
Ubuntu Pro 26.04 LTSprometheuspkg:deb/ubuntu/prometheus?arch=source&distro=esm-apps/resoluteOther threatsAffected
  • 2.53.3+ds1-2 – 2.53.5+ds1-3ubuntu0.26.04.1~esm1
4 affected builds
Fixed in–
Ubuntu 25.10prometheuspkg:deb/ubuntu/prometheus?arch=source&distro=questingOther threatsAffected
  • =2.53.3+ds1-1
  • =2.53.3+ds1-2
Fixed in–
Ubuntu Pro 24.04 LTSprometheuspkg:deb/ubuntu/prometheus?arch=source&distro=esm-apps/nobleOther threatsAffected
  • 2.45.0+ds-3build1 – 2.45.3+ds-2ubuntu0.3+esm2
13 affected builds
Fixed in–
Ubuntu Pro 22.04 LTSprometheuspkg:deb/ubuntu/prometheus?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 2.24.1+ds-1ubuntu1 – 2.31.2+ds1-1ubuntu1.22.04.3+esm3
11 affected builds
Fixed in–
Ubuntu 20.04 LTSprometheuspkg:deb/ubuntu/prometheus?arch=source&distro=focalOther threatsAffected
  • =2.7.1+ds-3
  • =2.15.2+ds-2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…