CVE-2026-42151: Prometheus Azure AD remote write OAuth client secret exposed via config API

Published May 4, 2026
·
Updated

Impact

Users who use Azure AD remote write with OAuth authentication are impacted.

The clientsecret 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.

Other sources

Prometheus Azure AD remote write OAuth client secret exposed via config API

Microsoft

Prometheus is an open-source monitoring system and time series database. Prior to versions 3.5.3 and 3.11.3, the clientsecret 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.

MITRE

Affected Software

5 affected componentsFixes available
Prometheus Prometheus<3.5.3, <3.11.3
go/github.com/prometheus/prometheus>=0.45.2<0.311.3
0.311.3
Prometheus Prometheus>=2.48.0<3.5.3
Prometheus Prometheus>=3.6.0<3.11.3
Microsoft azl3 telegraf 1.31.0-22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/prometheus/prometheus to a version that resolves this vulnerability.

    Fixed in 0.311.3
  2. Upgrade

    Upgrade Prometheus (storage/remote/azuread OAuthConfig client_secret field type) to a version that resolves this vulnerability.

    Fixed in 3.5.3
  3. Upgrade

    Upgrade Prometheus (storage/remote/azuread OAuthConfig client_secret field type) to a version that resolves this vulnerability.

    Fixed in 3.11.3
  4. Configuration

    Ensure the Azure AD remote write OAuth client_secret field in storage/remote/azuread is typed as Secret (not string) so Prometheus redacts it on the /-/config HTTP API endpoint.

    Prometheus Azure AD remote write OAuth configuration (storage/remote/azuread) client_secret type (client_secret field in OAuthConfig) = Secret
  5. Compensating control

    If you cannot upgrade, switch Prometheus Azure AD remote write authentication from OAuth client secret to Managed Identity or Workload Identity (no client secret is involved).

Event History

May 4, 2026
CVE Published
via MITRE·06:12 PM
Data Sourced
via MITRE·06:12 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyAffected Software
May 5, 2026
Advisory Published
via GitHub·07:33 PM
Data Sourced
via GitHub·07:33 PM
DescriptionSeverityWeaknessAffected Software
May 7, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:03 AM
Affected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-42151?

CVE-2026-42151 is classified as a high-severity vulnerability due to the exposure of sensitive OAuth client secrets.

2

How do I fix CVE-2026-42151?

To fix CVE-2026-42151, upgrade Prometheus to version 3.5.3 or later, or 3.11.3 or later.

3

What components are affected by CVE-2026-42151?

CVE-2026-42151 affects the Azure AD remote write OAuth configuration in Prometheus prior to specified versions.

4

What is the impact of CVE-2026-42151 on my system?

The impact of CVE-2026-42151 includes potential unauthorized access due to the exposure of OAuth client secrets.

5

Is there a workaround for CVE-2026-42151?

There are no known workarounds for CVE-2026-42151, so updating to a patched version is necessary.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203