{"id":"CVE-2026-42151","aliases":["BIT-prometheus-2026-42151","GHSA-wg65-39gg-5wfj","GO-2026-5710"],"url":"https://o3.security/vulnerability/CVE-2026-42151","summary":"Prometheus Azure AD remote write OAuth client secret exposed via config API","details":"### Impact\n\nUsers who use Azure AD remote write with OAuth authentication are impacted.\n\nThe `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.\n\n### Patches\n\nThe problem has been patched by changing `ClientSecret` in `OAuthConfig` to `Secret`. Users should upgrade to 3.11.3 or 3.5.3 LTS.\n\n### Workarounds\n\nUsers  who can not upgrade can switch to Managed Identity or Workload Identity authentication for Azure AD remote write, which do not involve a client secret.","published":"2026-05-04T18:12:16.917Z","modified":"2026-09-12T03:30:40.740410292Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":{"score":0.00352,"percentile":0.28752,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/prometheus/prometheus","fixedVersion":"0.311.3"}],"fix":{"url":"https://github.com/prometheus/prometheus/pull/18587","label":"prometheus/prometheus#18587"},"references":[{"type":"WEB","url":"https://github.com/prometheus/prometheus/releases/tag/v3.11.3"},{"type":"WEB","url":"https://github.com/prometheus/prometheus/releases/tag/v3.5.3"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42151.json"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:25039"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:25245"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:25504"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:34357"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:34359"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:36651"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:36796"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:36797"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:37267"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:37271"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:37272"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:40118"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:40262"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:40768"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:40945"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:40970"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:40972"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:40974"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:41019"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:41030"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:41031"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:41066"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:42146"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:42796"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:42852"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:43052"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:44622"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:47149"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:47952"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50843"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50874"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:53412"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:53413"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:53415"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:53530"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:54288"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:54427"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:56340"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:57191"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60386"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60387"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60388"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60389"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60390"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60391"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60441"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60477"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:63103"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-42151"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42151.json"},{"type":"ADVISORY","url":"https://github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42151"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2466507"},{"type":"FIX","url":"https://github.com/prometheus/prometheus/pull/18587"},{"type":"FIX","url":"https://github.com/prometheus/prometheus/pull/18590"},{"type":"PACKAGE","url":"https://github.com/prometheus/prometheus"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-12T03:30:40.740410292Z"}}