CVE-2026-42151
Prometheus Azure AD remote write OAuth client secret exposed via config API
Also known as BIT-prometheus-2026-42151, GHSA-wg65-39gg-5wfj, GO-2026-5710
Mitigation
- Upgrade github.com/prometheus/prometheus to 0.311.3 or later.
Who should check
- Projects that depend on Go package github.com/prometheus/prometheus (>= 0.45.2, < 0.311.3)
- Anyone running prometheus < 3.5.3; >= 3.6.0, < 3.11.3
Vulnerability facts
- Affected
- github.com/prometheus/prometheus >= 0.45.2, < 0.311.3
- Fixed in
- 0.311.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.41% chance of exploitation in 30 days (percentile 27, 2026-11-26)
- CWE
- CWE-200, CWE-312
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/prometheus/prometheus | >= 0.45.2, < 0.311.3 | 0.311.3 | osv |
| prometheus | < 3.5.3; >= 3.6.0, < 3.11.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-42151. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-42151.md Affected: github.com/prometheus/prometheus >= 0.45.2, < 0.311.3 Fixed in: 0.311.3 Steps: 1. Search this machine and project for github.com/prometheus/prometheus (Go), prometheus: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj
- https://access.redhat.com/errata/RHSA-2026:41019
- https://access.redhat.com/errata/RHSA-2026:36796
- https://access.redhat.com/errata/RHSA-2026:53413
- https://access.redhat.com/errata/RHSA-2026:34357
- https://access.redhat.com/errata/RHSA-2026:53412
- https://access.redhat.com/errata/RHSA-2026:53415
- https://access.redhat.com/errata/RHSA-2026:34359
- https://access.redhat.com/errata/RHSA-2026:56340
- https://access.redhat.com/errata/RHSA-2026:47952
- https://access.redhat.com/errata/RHSA-2026:50843
- https://access.redhat.com/errata/RHSA-2026:41030
- https://access.redhat.com/errata/RHSA-2026:44622
- https://access.redhat.com/errata/RHSA-2026:47149
- https://access.redhat.com/errata/RHSA-2026:53530
- https://access.redhat.com/errata/RHSA-2026:54288
- https://access.redhat.com/errata/RHSA-2026:60387
- https://access.redhat.com/errata/RHSA-2026:60390
- https://access.redhat.com/errata/RHSA-2026:60388
- https://access.redhat.com/errata/RHSA-2026:54427
- https://access.redhat.com/errata/RHSA-2026:60389
- https://access.redhat.com/errata/RHSA-2026:60391
- https://access.redhat.com/errata/RHSA-2026:57191
- https://access.redhat.com/errata/RHSA-2026:60386
- https://access.redhat.com/errata/RHSA-2026:36651
- https://access.redhat.com/errata/RHSA-2026:40945
- https://access.redhat.com/errata/RHSA-2026:40118
- https://access.redhat.com/errata/RHSA-2026:25039
- https://access.redhat.com/errata/RHSA-2026:25504
- https://access.redhat.com/errata/RHSA-2026:25245
- https://access.redhat.com/errata/RHSA-2026:63103
- https://access.redhat.com/errata/RHSA-2026:60477
- https://access.redhat.com/errata/RHSA-2026:40768
- https://access.redhat.com/errata/RHSA-2026:60441
- https://access.redhat.com/errata/RHSA-2026:41031
- https://access.redhat.com/errata/RHSA-2026:42146
- https://access.redhat.com/errata/RHSA-2026:43052
- https://access.redhat.com/errata/RHSA-2026:42796
- https://access.redhat.com/errata/RHSA-2026:41066
- https://access.redhat.com/errata/RHSA-2026:40262
- https://access.redhat.com/errata/RHSA-2026:40974
- https://access.redhat.com/errata/RHSA-2026:40970
- https://access.redhat.com/errata/RHSA-2026:40972
- https://access.redhat.com/errata/RHSA-2026:36797
- https://access.redhat.com/errata/RHSA-2026:37272
- https://access.redhat.com/errata/RHSA-2026:50874
- https://access.redhat.com/errata/RHSA-2026:37267
- https://access.redhat.com/errata/RHSA-2026:37271
- https://access.redhat.com/errata/RHSA-2026:42852
- https://nvd.nist.gov/vuln/detail/CVE-2026-42151
Patches
Other
- https://github.com/prometheus/prometheus/releases/tag/v3.11.3
- https://github.com/prometheus/prometheus/releases/tag/v3.5.3
- https://access.redhat.com/security/cve/CVE-2026-42151
- https://bugzilla.redhat.com/show_bug.cgi?id=2466507
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42151.json
- https://github.com/prometheus/prometheus
FAQ
Is CVE-2026-42151 being exploited?
There is no confirmed exploitation: CVE-2026-42151 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-42151?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-42151?
github.com/prometheus/prometheus >= 0.45.2, < 0.311.3.
Is there a fix for CVE-2026-42151?
Yes. Fixed in 0.311.3. Upgrade github.com/prometheus/prometheus to 0.311.3 or later.
How do I check if I'm affected by CVE-2026-42151?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.