CVE-2026-42151
ADVISORY - githubSummary
Impact
Users who use Azure AD remote write with OAuth authentication are impacted.
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.
Patches
The problem has been patched by changing ClientSecret in OAuthConfig to Secret. Users should upgrade to 3.11.3 or 3.5.3 LTS.
Workarounds
Users 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.
GitHub
CVSS SCORE
7.5high| Package | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
|---|---|---|---|---|---|
| github.com/prometheus/prometheus | golang | - | - | >=0.45.2,<0.311.3 | 0.311.3 |
| github.com/prometheus/prometheus | golang | - | - | >=0.0.0-20231219140530-3d6b7e665928,<0.0.0-20260427144041-eb173f5256d4 | 0.0.0-20260427144041-eb173f5256d4 |
CVSS:3 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone). One example of an Adjacent attack would be an ARP (IPv4) or neighbor discovery (IPv6) flood leading to a denial of service on the local LAN segment (e.g., CVE-2013-6014).
Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success when attacking the vulnerable component.
The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack.
The vulnerable system can be exploited without interaction from any user.
An exploited vulnerability can only affect resources managed by the same security authority. In this case, the vulnerable component and the impacted component are either the same, or both are managed by the same security authority.
There is a total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact. For example, an attacker steals the administrator's password, or private encryption keys of a web server.
There is no loss of trust or accuracy within the impacted component.
There is no impact to availability within the impacted component.
Docker
CVE-2026-42151
-
NIST
CVSS SCORE
7.5highAlpine
-
Debian
-
CVSS SCORE
N/AlowUbuntu
-
CVSS SCORE
N/AmediumGoLang
-
Alma
-
CVSS SCORE
N/AhighBitnami
BIT-prometheus-2026-42151
3.9
CVSS SCORE
7.5highRocky
-
CVSS SCORE
N/AhighRocky
-
CVSS SCORE
N/AhighChainguard
CGA-g3p6-r972-ghhg
-
minimos
MINI-2392-hxf2-vggj
-
minimos
MINI-252x-m2fr-7w55
-
minimos
MINI-294h-3rw8-w9gh
-
minimos
MINI-2gfj-gjc9-c7p7
-
minimos
MINI-2hm8-hcgg-r9rc
-
minimos
MINI-2p8f-8pf7-8p37
-
minimos
MINI-2rr3-vph6-v64r
-
minimos
MINI-3gcw-3jff-w4cw
-
minimos
MINI-48cp-xj2q-2g8g
-
minimos
MINI-48v8-xphh-q272
-
minimos
MINI-4hg6-w99h-x9h7
-
minimos
MINI-4hg8-64w4-9mch
-
minimos
MINI-4w9h-pw2x-3rxg
-
minimos
MINI-55gr-vhfw-5cc9
-
minimos
MINI-58cx-r2j8-pw94
-
minimos
MINI-5fqf-mwc7-m389
-
minimos
MINI-5p74-whq5-qr7h
-
minimos
MINI-5r3f-483p-g5pm
-
minimos
MINI-5v55-2fpc-97x7
-
minimos
MINI-63f3-hc37-24m9
-
minimos
MINI-665f-mh77-gh9j
-
minimos
MINI-6cmq-4rqm-hjpf
-
minimos
MINI-6gf3-qfxc-x4jf
-
minimos
MINI-74qj-rm7c-6xm4
-
minimos
MINI-77hm-3qfc-fj3v
-
minimos
MINI-7893-pxc4-cw97
-
minimos
MINI-7f7c-7c68-j86q
-
minimos
MINI-7ffq-w779-4jrw
-
minimos
MINI-7pjx-c4j6-qgx3
-
minimos
MINI-82fm-v695-x375
-
minimos
MINI-83w6-88g7-xhmh
-
minimos
MINI-8cj3-78qv-66c4
-
minimos
MINI-8j94-g9xh-65v7
-
minimos
MINI-8jmx-rrwj-hhjf
-
minimos
MINI-8m2q-5586-mvxr
-
minimos
MINI-8r5c-qc96-r8pw
-
minimos
MINI-8w4g-cv7f-62vv
-
minimos
MINI-8wpw-f74q-9958
-
minimos
MINI-964x-cc2j-24pc
-
minimos
MINI-96p9-w675-74r3
-
minimos
MINI-99fp-g339-rj8g
-
minimos
MINI-9h76-46hv-9gcc
-
minimos
MINI-9jj3-6qfx-4776
-
minimos
MINI-9mr2-xj38-xcqw
-
minimos
MINI-9p5h-267c-cqmh
-
minimos
MINI-c4fj-mhc2-379x
-
minimos
MINI-c8vw-677g-69vr
-
minimos
MINI-f4j5-7w5r-7gq8
-
minimos
MINI-f4q4-rxvp-9hw9
-
minimos
MINI-ffp2-3mc3-c6wr
-
minimos
MINI-ffrr-hc56-p3cv
-
minimos
MINI-fg3h-p2qw-wwfj
-
minimos
MINI-fgjc-72rx-fv99
-
minimos
MINI-fm87-rh6v-jmm5
-
minimos
MINI-fq8v-hcrw-fpfj
-
minimos
MINI-g2m9-m5c8-65rj
-
minimos
MINI-g2vr-8mxh-rf5w
-
minimos
MINI-g8j3-v7xp-rcvv
-
minimos
MINI-gc2w-5gv3-rqw3
-
minimos
MINI-gqw7-2cwp-p5xj
-
minimos
MINI-gvg5-rfhj-3669
-
minimos
MINI-gx79-rpch-2vf7
-
minimos
MINI-gxhw-r3qh-47wx
-
minimos
MINI-gxxh-h254-rqpc
-
minimos
MINI-hf47-wgm5-gxrq
-
minimos
MINI-hf6w-j3x4-r2x7
-
minimos
MINI-hg5h-j8cv-x2fw
-
minimos
MINI-hhqj-36hm-gv7v
-
minimos
MINI-hj8p-pgww-8w8c
-
minimos
MINI-hr2w-c68g-35hq
-
minimos
MINI-j3w9-vjgc-v5rf
-
minimos
MINI-j98r-8f9c-cw24
-
minimos
MINI-j9mm-pj2w-c59q
-
minimos
MINI-jmmw-jrm5-qm75
-
minimos
MINI-jqc8-cmpg-q4jh
-
minimos
MINI-jrh3-r5q6-3p8r
-
minimos
MINI-m86q-cpq9-pj3v
-
minimos
MINI-m993-r2v9-pr7x
-
minimos
MINI-mchp-6gj6-p8cw
-
minimos
MINI-mcp5-659j-pvv6
-
minimos
MINI-mph2-wf78-j3v9
-
minimos
MINI-p342-j65q-85f9
-
minimos
MINI-p3rh-4mjv-wj6x
-
minimos
MINI-p58m-x8g8-9v72
-
minimos
MINI-p824-99x7-h73j
-
minimos
MINI-p9jq-5rj5-cgp6
-
minimos
MINI-pf3w-xrh9-6h8p
-
minimos
MINI-pv8q-7r65-2h9j
-
minimos
MINI-pwhc-9cjh-c2c4
-
minimos
MINI-q23h-wc58-jjvg
-
minimos
MINI-q63c-7px2-39mx
-
minimos
MINI-qh2h-6r22-rxww
-
minimos
MINI-qr7q-4694-82pm
-
minimos
MINI-qrg9-xcw7-52cv
-
minimos
MINI-qx63-27jx-pp87
-
minimos
MINI-r28c-7837-423v
-
minimos
MINI-r53v-vm7w-8v42
-
minimos
MINI-r762-4j28-34jw
-
minimos
MINI-r876-xv54-pr75
-
minimos
MINI-r8wr-7hw7-rm53
-
minimos
MINI-r93g-r6m5-g2rc
-
minimos
MINI-rp62-m854-q25r
-
minimos
MINI-v3cw-8p9x-mj6g
-
minimos
MINI-v7hx-h4gf-j5xh
-
minimos
MINI-v838-xx2g-g738
-
minimos
MINI-v8pm-m8cm-rp38
-
minimos
MINI-vhch-2gf4-6qh9
-
minimos
MINI-vhh3-pg4q-52gx
-
minimos
MINI-vmmf-5h49-5mqj
-
minimos
MINI-vmpm-hvw5-465p
-
minimos
MINI-vmw5-gc2x-gf54
-
minimos
MINI-vwxr-6gc8-wc98
-
minimos
MINI-vxh3-9gc4-8gmh
-
minimos
MINI-w6qm-vjjp-xqj4
-
minimos
MINI-w8fq-m6xw-j27q
-
minimos
MINI-w8j2-2r32-4vw5
-
minimos
MINI-wrmf-2fxj-m8xm
-
minimos
MINI-wwvc-gg3c-2vwj
-
minimos
MINI-wxrw-vv45-jfp7
-
minimos
MINI-x4cp-xrqv-h86x
-
minimos
MINI-x758-9q2p-vqrg
-
minimos
MINI-xgqj-389w-p8f5
-
minimos
MINI-xjq3-wrjx-4p82
-
minimos
MINI-xmq6-m5cg-p329
-
minimos
MINI-xwjf-3r28-wfwp
-