CVE-2026-42151Prometheus Azure AD remote write OAuth client secret exposed via config API
Prometheus is an open-source monitoring system and time series database. Prior to versions 3.5.3 and 3.11.3, the client_secret field in the Azure AD remote write OAuth configuration (storage/remote/azuread) was typed as string instead of Secret. Prometheus redacts fields of type Secret when serving the configuration via the /-/config HTTP API endpoint. Because the field was a plain string, the Azure OAuth client secret was exposed in plaintext to any user or process with access to that endpoint. This issue has been patched in versions 3.5.3 and 3.11.3.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | prometheus | Fix pending | UBUNTU-CVE-2026-42151 | |
| Ubuntu 26.04 | prometheus | Fix pending | UBUNTU-CVE-2026-42151 | |
| Ubuntu 25.10 | prometheus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-42151 | |
| Ubuntu 24.04 | prometheus | Fix pending | UBUNTU-CVE-2026-42151 | |
| Ubuntu 22.04 | prometheus | Fix pending | UBUNTU-CVE-2026-42151 | |
| Ubuntu 20.04 | prometheus | Fix pending | UBUNTU-CVE-2026-42151 | |
| Ubuntu 18.04 | prometheus | Fix pending | UBUNTU-CVE-2026-42151 | |
| Ubuntu 16.04 | prometheus | Fix pending | UBUNTU-CVE-2026-42151 | |
| Debian 14 | prometheus | Fixed | 3.5.3+ds1-1 | DEBIAN-CVE-2026-42151 |
| Debian 13 | prometheus | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-42151 | |
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | opentelemetry-collector | Fixed | 0:0.152.1-1.el10_2 | RHSA-2026:34357 |
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | opentelemetry-collector | Fixed | 0:0.152.1-1.el9_8 | RHSA-2026:34359 |
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 7 | host-metering | Not affected | ||
| Red Hat Enterprise Linux 7 | host-metering-selinux | Not affected | ||
| AlmaLinux 10 | opentelemetry-collector | Fixed | 0.152.1-1.el10_2 | ALSA-2026:34357 |
| AlmaLinux 9 | opentelemetry-collector | Fixed | 0.152.1-1.el9_8 | ALSA-2026:34359 |
| Rocky Linux 10 | opentelemetry-collector | Fixed | 0:0.152.1-1.el10_2 | RLSA-2026:34357 |
| Rocky Linux 9 | opentelemetry-collector | Fixed | 0:0.152.1-1.el9_8 | RLSA-2026:34359 |
| Alpine Linux 3.24 | prometheus | Fixed | 3.5.3-r0 | ALPINE-CVE-2026-42151 |
| Alpine Linux 3.23 | prometheus | Fixed | 3.5.3-r0 | ALPINE-CVE-2026-42151 |
| Go library | github.com/prometheus/prometheus | Fixed | 0.311.3 | GHSA-wg65-39gg-5wfj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- prometheus: affected: < 3.5.3, >= 3.6.0, < 3.11.3
References
- https://github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj
- https://github.com/prometheus/prometheus/pull/18587
- https://github.com/prometheus/prometheus/pull/18590
- https://github.com/prometheus/prometheus/releases/tag/v3.11.3
- https://github.com/prometheus/prometheus/releases/tag/v3.5.3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.