Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-40179

published medium CVSS 4.0 · 5.3

Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer

Published
15 Apr 2026, 22:26:46 UTC
Updated
16 Apr 2026, 14:21:42 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
prometheus — prometheus>= 3.0.0, < 3.5.2 · >= 3.6.0, < 3.11.2 · < 0.311.2-0.20260410083055-07c6232d159b Affected Not stated GitHub_M
Alpine Linux edge prometheus Fixed 3.5.3-r0 Package fix record
SUSE / openSUSE SLE-15-SP4 golang-github-prometheus-node_exporteraarch64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
Alpine Linux v3.23 prometheus Fixed 3.5.3-r0 Package fix record
Alpine Linux v3.24 prometheus Fixed 3.5.3-r0 Package fix record
SUSE / openSUSE SLE-15-SP4 golang-github-prometheus-node_exporterppc64le Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP4 golang-github-prometheus-node_exporters390x Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP4 golang-github-prometheus-node_exporterx86_64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
Show 16 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-15-SP5 golang-github-prometheus-node_exporteraarch64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP5 golang-github-prometheus-node_exporterppc64le Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP5 golang-github-prometheus-node_exporters390x Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP5 golang-github-prometheus-node_exporterx86_64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP6 golang-github-prometheus-node_exporteraarch64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP6 golang-github-prometheus-node_exporterppc64le Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP6 golang-github-prometheus-node_exporters390x Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP6 golang-github-prometheus-node_exporterx86_64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP7 golang-github-prometheus-node_exporteraarch64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP7 golang-github-prometheus-node_exporterppc64le Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP7 golang-github-prometheus-node_exporters390x Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE SLE-15-SP7 golang-github-prometheus-node_exporterx86_64 Advisory build 1.10.2-150100.3.41.2 SUSE-SU-2026:2243-1
SUSE / openSUSE openSUSE-Tumbleweed golang-github-prometheus-prometheusaarch64 Advisory build 3.11.2-1.1 OPENSUSE-SU-2026:10607-1
SUSE / openSUSE openSUSE-Tumbleweed golang-github-prometheus-prometheusppc64le Advisory build 3.11.2-1.1 OPENSUSE-SU-2026:10607-1
SUSE / openSUSE openSUSE-Tumbleweed golang-github-prometheus-prometheuss390x Advisory build 3.11.2-1.1 OPENSUSE-SU-2026:10607-1
SUSE / openSUSE openSUSE-Tumbleweed golang-github-prometheus-prometheusx86_64 Advisory build 3.11.2-1.1 OPENSUSE-SU-2026:10607-1

Description

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

8

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
5.3 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
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

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
prometheus prometheus >= 3.0.0, < 3.5.2 (affected)>= 3.6.0, < 3.11.2 (affected)< 0.311.2-0.20260410083055-07c6232d159b (affected) GitHub_M · cna

Weaknesses

1
  • CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (GitHub_M · cna)

References

3

Provider assertions

2

GitHub_M · cna

Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
48e901656daec1ed2d3da726ad0397f87109bb333cb03e0c47947ac58ef7bb05
Ingested
23 Sep 2026, 09:13:02 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected