GHSA-wg65-39gg-5wfj

Suggest an improvement
Source
https://github.com/advisories/GHSA-wg65-39gg-5wfj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-wg65-39gg-5wfj/GHSA-wg65-39gg-5wfj.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-wg65-39gg-5wfj
Aliases
Downstream
Related
Published
2026-05-05T19:33:47Z
Modified
2026-05-26T11:14:07.431141649Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids": [
        "CWE-200",
        "CWE-312"
    ],
    "github_reviewed_at": "2026-05-05T19:33:47Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "nvd_published_at": "2026-05-04T19:16:04Z"
}
References

Affected packages

Go / github.com/prometheus/prometheus

Package

Name
github.com/prometheus/prometheus
View open source insights on deps.dev
Purl
pkg:golang/github.com/prometheus/prometheus

Affected ranges

Type
SEMVER
Events
Introduced
0.45.2
Fixed
0.311.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-wg65-39gg-5wfj/GHSA-wg65-39gg-5wfj.json"