p PatchFirst

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 · Mittel · EPSS 0,3% · Korrektur verfügbar

Vergleichen Sie mit Ihrer installierten Version

Betroffene Produkte und bekannte korrigierte Versionen sind öffentlich. Vergleichen Sie diese mit Ihrer installierten Version.

  • prometheusKeine Korrektur veröffentlicht
  • prometheus Alpine 3.23Auf 3.5.3-r0 aktualisieren
  • prometheus Alpine 3.24Auf 3.5.3-r0 aktualisieren
  • prometheus Ubuntu 16.04 LTSKeine Korrektur veröffentlicht
  • und 7 weitere

Installierte Version prüfen:

apk list -I -o prometheus
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="prometheus"'

Bewerten Sie die Risiken Ihres Servers

Die kostenlose Prüfung liefert ohne Registrierung eine Bewertung und eine Risikoübersicht nach Technologie-Stacks. Sie beantwortet nicht, ob diese einzelne Schwachstelle Sie betrifft.

Die Überwachung gleicht öffentliche Informationen mit der Software Ihrer Server ab. Sie erhalten detaillierte Funde und eine Reihenfolge für Updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Server kostenlos prüfen →

Kanäle bieten allgemeine Nachrichten zu Technologien; neue Funde auf Ihren Servern meldet die Überwachung im Dashboard, per Browser-Benachrichtigung, in Telegram oder über einen Webhook.

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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.

Veröffentlicht
Aktualisiert

Korrekturen in Distributionen

Technologie-Stack: system

Betroffene Produkte und Versionen

  • prometheus

    Softwareversionen
    • >= 3.0.0, < 3.5.2: Betroffen
    • >= 3.6.0, < 3.11.2: Betroffen
    • < 0.311.2-0.20260410083055-07c6232d159b: Betroffen

    Keine Korrektur veröffentlicht

  • prometheus Alpine 3.23

    Betroffene Versionsbereiche
    • ECOSYSTEM: ≥ 3.0.0, < 3.5.3-r0

    Auf 3.5.3-r0 aktualisieren

  • prometheus Alpine 3.24

    Betroffene Versionsbereiche
    • ECOSYSTEM: ≥ 3.0.0, < 3.5.3-r0

    Auf 3.5.3-r0 aktualisieren

  • prometheus Ubuntu 16.04 LTS

    Softwareversionen
    • 0.14.0+ds-1
    • 0.16.2+ds-1
    • 0.16.2+ds-1ubuntu1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • prometheus Ubuntu 18.04 LTS

    Softwareversionen
    • 1.7.1+ds-1
    • 1.8.1+ds-2
    • 2.1.0+ds-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • prometheus Ubuntu 20.04 LTS

    Softwareversionen
    • 2.7.1+ds-3
    • 2.15.2+ds-2
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • prometheus Ubuntu Pro 22.04 LTS

    Softwareversionen
    • 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
    Alle Versionen (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
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • prometheus Ubuntu Pro 24.04 LTS

    Softwareversionen
    • 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
    Alle Versionen (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
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • prometheus Ubuntu 25.10

    Softwareversionen
    • 2.53.3+ds1-1
    • 2.53.3+ds1-2
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • prometheus Ubuntu 26.10

    Softwareversionen
    • 2.53.5+ds1-3
    • 3.5.3+ds1-3
    • 3.5.3+ds1-5
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • prometheus Ubuntu Pro 26.04 LTS

    Softwareversionen
    • 2.53.3+ds1-2
    • 2.53.5+ds1-2
    • 2.53.5+ds1-3
    • 2.53.5+ds1-3ubuntu0.26.04.1~esm1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

Originalquellen

Prüfen Sie Ihren Server →