Advisory

GHSA-wg65-39gg-5wfj

Also known as: BIT-prometheus-2026-42151, CVE-2026-42151, GO-2026-5710

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-05 19:33 UTC
Modified
2026-09-09 15:45 UTC

Affected packages and fixes

github.com/prometheus/prometheus

Go · All systems

Affected

  • introduced 0.45.2, fixed 0.311.3 (semver)

Fixed versions

0.311.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences