CVE-2026-40179
CVE-2026-40179 · Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer
CVSS 5.3 · Medium · EPSS 0.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- prometheusNo fix published
- prometheus Alpine 3.23Update to 3.5.3-r0
- prometheus Alpine 3.24Update to 3.5.3-r0
- prometheus Ubuntu 16.04 LTSNo fix published
- and 7 more
Check the installed version:
apk list -I -o prometheusdpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="prometheus"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Updated
Fixes in distributions
- openSUSE-SU-2026:21483-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:2774-1 · SUSE Multi-Linux Manager Proxy Extension for SLE 5.1, SUSE Multi-Linux Manager Server Extension for SLE 5.1 ·
- SUSE-SU-2026:2768-1 · SUSE Multi Linux Manager Tools SLE-15, SUSE Multi Linux Manager Tools SLE-Micro-5 ·
- openSUSE-SU-2026:10607-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
prometheus
- Versions
- >= 3.0.0, < 3.5.2: Affected
- >= 3.6.0, < 3.11.2: Affected
- < 0.311.2-0.20260410083055-07c6232d159b: Affected
No fix published
prometheus Alpine 3.23
- Affected ranges
- ECOSYSTEM: ≥ 3.0.0, < 3.5.3-r0
Update to 3.5.3-r0
prometheus Alpine 3.24
- Affected ranges
- ECOSYSTEM: ≥ 3.0.0, < 3.5.3-r0
Update to 3.5.3-r0
prometheus Ubuntu 16.04 LTS
- Versions
- 0.14.0+ds-1
- 0.16.2+ds-1
- 0.16.2+ds-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
prometheus Ubuntu 18.04 LTS
- Versions
- 1.7.1+ds-1
- 1.8.1+ds-2
- 2.1.0+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
prometheus Ubuntu 20.04 LTS
- Versions
- 2.7.1+ds-3
- 2.15.2+ds-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
prometheus Ubuntu Pro 22.04 LTS
- Versions
- 2.24.1+ds-1ubuntu1
- 2.24.1+ds-1ubuntu2
- 2.31.1+ds2-2
- 2.31.2+ds1-1
- 2.31.2+ds1-1ubuntu1
- 2.31.2+ds1-1ubuntu1.22.04.1
All versions (11)
- 2.31.2+ds1-1ubuntu1.22.04.2
- 2.31.2+ds1-1ubuntu1.22.04.3
- 2.31.2+ds1-1ubuntu1.22.04.3+esm1
- 2.31.2+ds1-1ubuntu1.22.04.3+esm2
- 2.31.2+ds1-1ubuntu1.22.04.3+esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
prometheus Ubuntu Pro 24.04 LTS
- Versions
- 2.45.0+ds-3build1
- 2.45.1+ds-1
- 2.45.1+ds-2
- 2.45.1+ds-3
- 2.45.3+ds-2
- 2.45.3+ds-2build1
All versions (13)
- 2.45.3+ds-2ubuntu0.1
- 2.45.3+ds-2ubuntu0.2
- 2.45.3+ds-2ubuntu0.2+esm1
- 2.45.3+ds-2ubuntu0.2+esm2
- 2.45.3+ds-2ubuntu0.3
- 2.45.3+ds-2ubuntu0.3+esm1
- 2.45.3+ds-2ubuntu0.3+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
prometheus Ubuntu 25.10
- Versions
- 2.53.3+ds1-1
- 2.53.3+ds1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
prometheus Ubuntu 26.10
- Versions
- 2.53.5+ds1-3
- 3.5.3+ds1-3
- 3.5.3+ds1-5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
prometheus Ubuntu Pro 26.04 LTS
- Versions
- 2.53.3+ds1-2
- 2.53.5+ds1-2
- 2.53.5+ds1-3
- 2.53.5+ds1-3ubuntu0.26.04.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published