fix: patch CVE-2026-42151 in github.com/prometheus/prometheus#369
Merged
openshift-merge-bot[bot] merged 1 commit intoJul 8, 2026
Merged
Conversation
Use a replace directive to point github.com/prometheus/prometheus to stolostron/prometheus@cve-2026-42151-v0.308.0 which contains the upstream fix (prometheus/prometheus#18587) cherry-picked onto v0.308.0. The fix changes ClientSecret in the Azure AD OAuth config from string to config.Secret so that it is properly redacted by the /-/config API endpoint. Ref: GHSA-wg65-39gg-5wfj Ref: ACM-36251 Signed-off-by: Coleen Iona Quadros <[email protected]> Signed-off-by: Coleen Iona Quadros <[email protected]>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: coleenquadros, jacobbaungard The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
openshift-merge-bot
Bot
deleted the
fix/cve-CVE-2026-42151-prometheus-release-2.17
branch
July 8, 2026 13:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
client_secretexposed via the/-/configAPI endpointreplacedirective ingo.modto pointgithub.com/prometheus/prometheustostolostron/[email protected], which contains the upstream fix (prometheus/prometheus#18587) cherry-picked onto v0.308.0CVE Details
What the fix does
Changes
ClientSecretinOAuthConfigfromstringtoconfig.Secretso the Azure AD OAuth client secret is properly redacted when served through the/-/configHTTP API endpoint.Verification
govulncheck ./...— GO-2026-5710 no longer reportedgo build ./...— compiles cleanlygo mod tidy && go mod verify— passesJira
ACM-36251
Test plan
govulncheckconfirms CVE resolvedgo build ./...succeedsgo mod verifypasses