GitHub Advisoryadvisory · Go
GHSA-wg65-39gg-5wfj Prometheus Azure AD remote write OAuth client secret exposed via config API
HIGH
Official page ↗
- Aliases
- CVE-2026-42151
- Ecosystem
- Go
- Packages
- github.com/prometheus/prometheus
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-200, CWE-256, CWE-312
- Reviewed
- 2026-05-05
Affected packages
• Go github.com/prometheus/prometheus: >= 0.45.2, < 0.311.3 → fixed in 0.311.3
Description
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.
Related
Alias · CVE (1)
- CVE-2026-42151 Prometheus is an open-source monitoring system and time series database. vulnerability
References
- https://github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj web
- https://nvd.nist.gov/vuln/detail/CVE-2026-42151 advisory
- https://github.com/prometheus/prometheus/pull/18590 web
- https://github.com/prometheus/prometheus/pull/18587 web
- https://access.redhat.com/errata/RHSA-2026:60388 web
- https://access.redhat.com/errata/RHSA-2026:60387 web
- https://access.redhat.com/errata/RHSA-2026:60386 web
- https://access.redhat.com/errata/RHSA-2026:57191 web
- https://access.redhat.com/errata/RHSA-2026:56340 web
- https://access.redhat.com/errata/RHSA-2026:54427 web
- https://access.redhat.com/errata/RHSA-2026:54288 web
- https://access.redhat.com/errata/RHSA-2026:53530 web
- https://access.redhat.com/errata/RHSA-2026:53415 web
- https://access.redhat.com/errata/RHSA-2026:53413 web
- https://access.redhat.com/errata/RHSA-2026:53412 web
- https://access.redhat.com/errata/RHSA-2026:50874 web
- https://access.redhat.com/errata/RHSA-2026:50843 web
- https://access.redhat.com/errata/RHSA-2026:60389 web
- https://access.redhat.com/errata/RHSA-2026:60390 web
- https://access.redhat.com/errata/RHSA-2026:60391 web
- https://access.redhat.com/errata/RHSA-2026:60441 web
- https://access.redhat.com/errata/RHSA-2026:60477 web
- https://access.redhat.com/errata/RHSA-2026:63103 web
- https://access.redhat.com/security/cve/CVE-2026-42151 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2466507 web
- https://github.com/prometheus/prometheus package
- https://github.com/prometheus/prometheus/releases/tag/v3.11.3 web
- https://github.com/prometheus/prometheus/releases/tag/v3.5.3 web
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42151.json web
- https://access.redhat.com/errata/RHSA-2026:25039 web
- https://access.redhat.com/errata/RHSA-2026:25245 web
- https://access.redhat.com/errata/RHSA-2026:25504 web
- https://access.redhat.com/errata/RHSA-2026:34357 web
- https://access.redhat.com/errata/RHSA-2026:34359 web
- https://access.redhat.com/errata/RHSA-2026:36651 web
- https://access.redhat.com/errata/RHSA-2026:36796 web
- https://access.redhat.com/errata/RHSA-2026:36797 web
- https://access.redhat.com/errata/RHSA-2026:37267 web
- https://access.redhat.com/errata/RHSA-2026:37271 web
- https://access.redhat.com/errata/RHSA-2026:37272 web