CVE-2026-42151: Github.com/prometheus/prometheus Prometheus Azure AD Remote Write Vulnerability
HIGHCVE-2026-42151 is a HIGH (CVSS 7.5) prometheus azure ad remote write vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Github.com/prometheus/prometheus libraries in the Go ecosystem. The issue involves prometheus azure ad remote write oauth client secret exposed via config api. Remediation is available by upgrading affected packages to version 0.311.3.
CVE-2026-42151 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-42151
To remediate this vulnerability, upgrade all affected Github.com/prometheus/prometheus dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/prometheus/prometheus to 0.311.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/prometheus/prometheus
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-42151, inspect your project dependencies for Github.com/prometheus/prometheus:
inspect dependencies for github.com/prometheus/prometheus
Analyze the terminal output to locate any version of Github.com/prometheus/prometheus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.311.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Github.com/prometheus/prometheus, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42151 Affected Github.com/prometheus/prometheus Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/prometheus/prometheus
|
Go |
≥ 0.45.2
< 0.311.3
|
0.311.3
|
References
Frequently Asked Questions
What is CVE-2026-42151?
Which Github.com/prometheus/prometheus versions are affected?
What version fixes CVE-2026-42151?
Is github.com/prometheus/prometheus affected?
What is the CVSS score of CVE-2026-42151?
What CWE is associated with CVE-2026-42151?
How can I check Go dependencies for CVE-2026-42151?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wg65-39gg-5wfj",
"modified" : "2026-09-09T15:33:43Z",
"published" : "2026-05-05T19:33:47Z",
"aliases" : [ "CVE-2026-42151" ],
"summary" : "Prometheus Azure AD remote write OAuth client secret exposed via config API",
"details" : "### Impact\n\nUsers who use Azure AD remote write with OAuth authentication are impacted.\n\nThe `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.\n\n### Patches\n\nThe problem has been patched by changing `ClientSecret` in `OAuthConfig` to `Secret`. Users should upgrade to 3.11.3 or 3.5.3 LTS.\n\n### Workarounds\n\nUsers 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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/prometheus/prometheus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.45.2"
}, {
"fixed" : "0.311.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42151"
}, {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/pull/18590"
}, {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/pull/18587"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60388"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60387"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60386"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:57191"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:56340"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:54427"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:54288"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53530"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53415"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53413"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53412"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:50874"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:50843"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60389"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60390"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60391"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60441"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60477"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:63103"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-42151"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2466507"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/prometheus/prometheus"
}, {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/releases/tag/v3.11.3"
}, {
"type" : "WEB",
"url" : "https://github.com/prometheus/prometheus/releases/tag/v3.5.3"
}, {
"type" : "WEB",
"url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42151.json"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:25039"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:25245"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:25504"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:34357"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:34359"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:36651"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:36796"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:36797"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:37267"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:37271"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:37272"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:40118"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:40262"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:40768"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:40945"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:40970"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:40972"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:40974"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:41019"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:41030"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:41031"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:41066"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:42146"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:42796"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:42852"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:43052"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:44622"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:47149"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:47952"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-256", "CWE-312" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T19:33:47Z",
"nvd_published_at" : "2026-05-04T19:16:04Z"
}
}