CVE-2026-42151

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

Published May 4, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from the Azure AD remote‑write OAuth configuration field `client_secret` being stored as a plain string. Because Prometheus only redacts values of type Secret in the /-/config API, the secret is returned in cleartext to anyone who can access the endpoint. This exposure permits an attacker to obtain the OAuth client credential, which could be used to authenticate to Prometheus services and gain unauthorized access to sensitive monitoring data or modify metric streams.

Affected Systems

Prometheus versions prior to 3.5.3 and 3.11.3 are affected. The issue was fixed in releases 3.5.3 and 3.11.3, and any later version should be considered secure.

Risk and Exploitability

The CVSS score of 7.5 indicates a significant impact. The EPSS score of 0.0001 (less than 1%) shows a very low probability of exploitation, and the vulnerability is not listed in CISA's KEV catalog, suggesting it has not yet been widely exploited. Attackers can exploit the flaw by accessing the internal /-/config endpoint; if the endpoint is exposed to the network or accessible to local processes, the secret can be read and subsequently used to impersonate Prometheus and compromise the confidentiality of monitoring data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Prometheus to version 3.5.3 or newer (including 3.11.3 and later releases) to correct the configuration type and enable secret redaction.
  • Restrict access to the internal /-/config endpoint so that only trusted users or systems can query it, preventing unauthorized disclosure of the client secret.
  • Review existing Azure AD remote‑write OAuth configurations after patching to confirm that the client_secret field is now stored as a Secret and is no longer visible in the config API.

Generated by OpenCVE AI on May 26, 2026 at 13:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wg65-39gg-5wfj Prometheus Azure AD remote write OAuth client secret exposed via config API
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:25039 cve-icon
https://access.redhat.com/errata/RHSA-2026:25245 cve-icon
https://access.redhat.com/errata/RHSA-2026:25504 cve-icon
https://access.redhat.com/errata/RHSA-2026:34357 cve-icon
https://access.redhat.com/errata/RHSA-2026:34359 cve-icon
https://access.redhat.com/errata/RHSA-2026:36651 cve-icon
https://access.redhat.com/errata/RHSA-2026:36796 cve-icon
https://access.redhat.com/errata/RHSA-2026:36797 cve-icon
https://access.redhat.com/errata/RHSA-2026:37267 cve-icon
https://access.redhat.com/errata/RHSA-2026:37271 cve-icon
https://access.redhat.com/errata/RHSA-2026:37272 cve-icon
https://access.redhat.com/errata/RHSA-2026:40118 cve-icon
https://access.redhat.com/errata/RHSA-2026:40262 cve-icon
https://access.redhat.com/errata/RHSA-2026:40768 cve-icon
https://access.redhat.com/errata/RHSA-2026:40945 cve-icon
https://access.redhat.com/errata/RHSA-2026:40970 cve-icon
https://access.redhat.com/errata/RHSA-2026:40972 cve-icon
https://access.redhat.com/errata/RHSA-2026:40974 cve-icon
https://access.redhat.com/errata/RHSA-2026:41019 cve-icon
https://access.redhat.com/errata/RHSA-2026:41030 cve-icon
https://access.redhat.com/errata/RHSA-2026:41031 cve-icon
https://access.redhat.com/errata/RHSA-2026:41066 cve-icon
https://access.redhat.com/errata/RHSA-2026:42146 cve-icon
https://access.redhat.com/errata/RHSA-2026:42796 cve-icon
https://access.redhat.com/errata/RHSA-2026:42852 cve-icon
https://access.redhat.com/errata/RHSA-2026:43052 cve-icon
https://access.redhat.com/errata/RHSA-2026:44622 cve-icon
https://access.redhat.com/errata/RHSA-2026:47149 cve-icon
https://access.redhat.com/errata/RHSA-2026:47952 cve-icon
https://access.redhat.com/errata/RHSA-2026:50843 cve-icon
https://access.redhat.com/errata/RHSA-2026:50874 cve-icon
https://access.redhat.com/errata/RHSA-2026:53412 cve-icon
https://access.redhat.com/errata/RHSA-2026:53413 cve-icon
https://access.redhat.com/errata/RHSA-2026:53415 cve-icon
https://access.redhat.com/errata/RHSA-2026:53530 cve-icon
https://access.redhat.com/errata/RHSA-2026:54288 cve-icon
https://access.redhat.com/errata/RHSA-2026:54427 cve-icon
https://access.redhat.com/errata/RHSA-2026:56340 cve-icon
https://access.redhat.com/errata/RHSA-2026:57191 cve-icon
https://access.redhat.com/errata/RHSA-2026:60386 cve-icon
https://access.redhat.com/errata/RHSA-2026:60387 cve-icon
https://access.redhat.com/errata/RHSA-2026:60388 cve-icon
https://access.redhat.com/errata/RHSA-2026:60389 cve-icon
https://access.redhat.com/errata/RHSA-2026:60390 cve-icon
https://access.redhat.com/errata/RHSA-2026:60391 cve-icon
https://access.redhat.com/errata/RHSA-2026:60441 cve-icon
https://access.redhat.com/errata/RHSA-2026:60477 cve-icon
https://access.redhat.com/errata/RHSA-2026:63103 cve-icon
https://access.redhat.com/security/cve/CVE-2026-42151 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2466507 cve-icon
https://github.com/prometheus/prometheus/pull/18587 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/pull/18590 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/releases/tag/v3.11.3 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/releases/tag/v3.5.3 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj cve-icon cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2026-42151 cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42151.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2026-42151 cve-icon
History
Type Values Removed Values Added
CPEs cpe:2.3:a:prometheus:prometheus:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Prometheus
Prometheus prometheus
Vendors & Products Prometheus
Prometheus prometheus
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Prometheus Azure AD remote write OAuth client secret exposed via config API
Weaknesses CWE-200
CWE-312
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-256

    Plaintext Storage of a Password

  • CWE-312

    Cleartext Storage of Sensitive Information

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 10, 2026, 12:04 PM
Reserved
Apr 24, 2026, 5:15 PM
Status
Modified
Published
May 4, 2026, 7:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Important
Public date
May 4, 2026, 6:12 PM