Skip to content
Heist/ feed
Back to feed
Medium

prometheus — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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 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

Products
prometheus
Affected versions
0.14.0+ds-1, 0.16.2+ds-1, 0.16.2+ds-1ubuntu1, 1.7.1+ds-1, 1.8.1+ds-2, 2.1.0+ds-1, 2.15.2+ds-2, 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, 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, 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, 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, 2.53.3+ds1-1, 2.53.3+ds1-2, 2.53.5+ds1-2, 2.53.5+ds1-3, 2.53.5+ds1-3ubuntu0.26.04.1~esm1, 2.7.1+ds-3, 3.5.3+ds1-3, 3.5.3+ds1-5
Fixed versions
Not specified
CVEs
CVE-2026-40179
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:02 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-40179

core-osv · Original source

Published 15 Apr 2026, 23:16 UTC

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

osv:UBUNTU-CVE-2026-40179

prometheus

Fixed versions: Not specified

prometheus

Fixed versions: Not specified

prometheus

Fixed versions: Not specified

prometheus

Fixed versions: Not specified

prometheus

Fixed versions: Not specified

prometheus

Fixed versions: Not specified

prometheus

Fixed versions: Not specified

prometheus

Fixed versions: Not specified

Complete source record
{
  "id": "ec4e0b22682cca60414cb93b92edb5c465ade6d7f30374970e3d68f93bf48f56",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40179",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-40179",
    "summary": "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 ",
    "evidence": "osv:UBUNTU-CVE-2026-40179",
    "products": [
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.14.0+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.16.2+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.16.2+ds-1ubuntu1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.1+ds-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.8.1+ds-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.1.0+ds-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.1+ds-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.15.2+ds-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.24.1+ds-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.24.1+ds-1ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.1+ds2-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1ubuntu1.22.04.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1ubuntu1.22.04.2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1ubuntu1.22.04.3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1ubuntu1.22.04.3+esm1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1ubuntu1.22.04.3+esm2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.31.2+ds1-1ubuntu1.22.04.3+esm3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.45.0+ds-3build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.1+ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.1+ds-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.1+ds-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2ubuntu0.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2ubuntu0.2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2ubuntu0.2+esm1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2ubuntu0.2+esm2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2ubuntu0.3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2ubuntu0.3+esm1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.45.3+ds-2ubuntu0.3+esm2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.53.3+ds1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.53.3+ds1-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.53.5+ds1-3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.5.3+ds1-3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.5.3+ds1-5",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "prometheus",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.53.3+ds1-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.53.5+ds1-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.53.5+ds1-3",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.53.5+ds1-3ubuntu0.26.04.1~esm1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-40179",
      "aliases": [
        "UBUNTU-CVE-2026-40179"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.14.0+ds-1",
            "0.16.2+ds-1",
            "0.16.2+ds-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "prometheus",
                "binary_version": "0.16.2+ds-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.7.1+ds-1",
            "1.8.1+ds-2",
            "2.1.0+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "prometheus",
                "binary_version": "2.1.0+ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.7.1+ds-3",
            "2.15.2+ds-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "prometheus",
                "binary_version": "2.15.2+ds-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "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",
            "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "prometheus",
                "binary_version": "2.31.2+ds1-1ubuntu1.22.04.3+esm3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "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",
            "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "prometheus",
                "binary_version": "2.45.3+ds-2ubuntu0.3+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.53.3+ds1-1",
            "2.53.3+ds1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-prometheus-prometheus-dev",
                "binary_version": "2.53.3+ds1-2"
              },
              {
                "binary_name": "prometheus",
                "binary_version": "2.53.3+ds1-2"
              },
              {
                "binary_name": "promtool",
                "binary_version": "2.53.3+ds1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.53.5+ds1-3",
            "3.5.3+ds1-3",
            "3.5.3+ds1-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-prometheus-prometheus-dev",
                "binary_version": "3.5.3+ds1-5"
              },
              {
                "binary_name": "prometheus",
                "binary_version": "3.5.3+ds1-5"
              },
              {
                "binary_name": "promtool",
                "binary_version": "3.5.3+ds1-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "prometheus",
            "purl": "pkg:deb/ubuntu/prometheus?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40179.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-prometheus-prometheus-dev",
                "binary_version": "2.53.5+ds1-3ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "prometheus",
                "binary_version": "2.53.5+ds1-3ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "promtool",
                "binary_version": "2.53.5+ds1-3ubuntu0.26.04.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:03.692156212Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40179"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-40179",
        "https://www.cve.org/CVERecord?id=CVE-2026-40179",
        "https://github.com/prometheus/prometheus/security/advisories/GHSA-vffh-x6r8-xx99",
        "https://github.com/prometheus/prometheus/pull/18506"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40179",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 360219,
  "published_at": "2026-04-15T23:16:00+00:00"
}