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 · Media · EPSS 0,3% · Corrección disponible

Compara con tu versión instalada

Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.

Comprueba la versión instalada:

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

Evalúa los riesgos de tu servidor

La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.

La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.

curl -fsSL https://patchfirst.dev/check.sh | sh
Comprobar tu servidor gratis →

Los canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

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.

Publicación
Actualización

Correcciones en distribuciones

Pila tecnológica: system

Productos y versiones afectados

  • prometheus

    Versiones
    • >= 3.0.0, < 3.5.2: Afectada
    • >= 3.6.0, < 3.11.2: Afectada
    • < 0.311.2-0.20260410083055-07c6232d159b: Afectada

    Sin corrección publicada

  • prometheus Alpine 3.23

    Intervalos de versiones afectados
    • ECOSYSTEM: ≥ 3.0.0, < 3.5.3-r0

    Actualiza a 3.5.3-r0

  • prometheus Alpine 3.24

    Intervalos de versiones afectados
    • ECOSYSTEM: ≥ 3.0.0, < 3.5.3-r0

    Actualiza a 3.5.3-r0

  • prometheus Ubuntu 16.04 LTS

    Versiones
    • 0.14.0+ds-1
    • 0.16.2+ds-1
    • 0.16.2+ds-1ubuntu1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • prometheus Ubuntu 18.04 LTS

    Versiones
    • 1.7.1+ds-1
    • 1.8.1+ds-2
    • 2.1.0+ds-1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • prometheus Ubuntu 20.04 LTS

    Versiones
    • 2.7.1+ds-3
    • 2.15.2+ds-2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • prometheus Ubuntu Pro 22.04 LTS

    Versiones
    • 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
    Todas las versiones (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
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • prometheus Ubuntu Pro 24.04 LTS

    Versiones
    • 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
    Todas las versiones (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
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • prometheus Ubuntu 25.10

    Versiones
    • 2.53.3+ds1-1
    • 2.53.3+ds1-2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • prometheus Ubuntu 26.10

    Versiones
    • 2.53.5+ds1-3
    • 3.5.3+ds1-3
    • 3.5.3+ds1-5
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • prometheus Ubuntu Pro 26.04 LTS

    Versiones
    • 2.53.3+ds1-2
    • 2.53.5+ds1-2
    • 2.53.5+ds1-3
    • 2.53.5+ds1-3ubuntu0.26.04.1~esm1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

Fuentes originales

Comprueba tu servidor →