CVE catalog

CVE-2026-40179

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

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.26% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianprometheussid3.5.3+ds1-6not affected
Debianprometheusforky3.5.3+ds1-6not affected
Debianprometheustrixie2.53.3+ds1-2not affected
Debianprometheusbookworm2.42.0+ds-5+deb12u1not affected
CpeprometheusNot reported3.5.2fixed
CpeprometheusNot reported3.11.2fixed
Gogithub.com/prometheus/prometheusNot reported0.311.2-0.20260410083055-07c6232d159bfixed
Gogithub.com/prometheus/prometheusNot reportedNot reportedunknown
Gogithub.com/prometheus/prometheusNot reportedNot reportedunknown
Gogithub.com/prometheus/prometheusNot reported0.311.2-0.20260410083055-07c6232d159bfixed
Opensusegolang-github-prometheus-prometheustumbleweed3.11.2-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianprometheussourcesidNot affectedunimportantNot reportedNot reported
DebianprometheussourceforkyNot affectedunimportantNot reportedNot reported
DebianprometheussourcetrixieNot affectedunimportantNot reportedNot reported
DebianprometheussourcebookwormNot affectedunimportantNot reportedNot reported
CpeprometheuscpeNot reported3.5.2Not reportedNot reportedNot reported
CpeprometheuscpeNot reported3.11.2Not reportedNot reportedNot reported
Gogithub.com/prometheus/prometheusgoNot reported0.311.2-0.20260410083055-07c6232d159bNot reportedGHSA-VFFH-X6R8-XX99Not reported
Gogithub.com/prometheus/prometheusGoNot reported0.311.2-0.20260410083055-07c6232d159bNot reportedNot reportedNot reported
Opensusegolang-github-prometheus-prometheusrpmtumbleweed3.11.2-1.1Not reportedOPENSUSE-SU-2026:10607-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [prometheus]Not affected
    Details (2)
    • 2.42.0+ds-5+deb12u1 · amd64 · bookworm

      Not affected

      nvd · prometheus · debian · bookworm

    • 2.42.0+ds-5+deb12u1 · arm64 · bookworm

      Not affected

      nvd · prometheus · debian · bookworm

[openSUSE Tumbleweed]

Observed:

References