Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/prometheus/prometheus
  4. ›
  5. CVE-2026-42151

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

May 5, 2026

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.

References

  • github.com/advisories/GHSA-wg65-39gg-5wfj
  • github.com/prometheus/prometheus/pull/18587
  • github.com/prometheus/prometheus/pull/18590
  • github.com/prometheus/prometheus/releases/tag/v3.11.3
  • github.com/prometheus/prometheus/releases/tag/v3.5.3
  • github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj
  • nvd.nist.gov/vuln/detail/CVE-2026-42151

Code Behaviors & Features

Detect and mitigate CVE-2026-42151 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.45.2 before 0.311.3

Fixed versions

  • 0.311.3

Solution

Upgrade to version 0.311.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-312: Cleartext Storage of Sensitive Information

Source file

go/github.com/prometheus/prometheus/CVE-2026-42151.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 15 May 2026 12:18:40 +0000.