fix: upgrade github.com/prometheus/prometheus to 0.311.3 (CVE-2026-42151)#22983
Open
orbisai0security wants to merge 1 commit into
Open
Conversation
Automated dependency upgrade by OrbisAI Security
|
Contributor
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Plugin as Netdata Plugin (go/plugins)
participant Client as Prometheus Client Library (v0.311.3)
participant Target as Remote Prometheus Target
Note over Plugin, Target: Scrape flow (unchanged by version bump)
Plugin->>Client: Create client with Azure OAuth config
Client->>Client: CHANGED: Parse config (CVE-2026-42151 fix – suppress secret exposure)
Client->>Target: HTTP GET /metrics (OAuth token)
Target-->>Client: Metrics payload
Client-->>Plugin: Returned parsed metrics
Member
|
Not applicable. We only use the parser from the Prometheus package. Also, upgrading the Prometheus package will likely require changes on our side, as they have made API changes. |
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
Upgrade github.com/prometheus/prometheus from v0.302.0 to 0.311.3 to fix CVE-2026-42151.
Vulnerability
CVE-2026-42151src/go/go.modDescription: github.com/prometheus/prometheus: Prometheus: Information disclosure of Azure OAuth client secret via config API
Evidence
Scanner confirmation: trivy rule
CVE-2026-42151flagged this pattern.Production code: This file is in the production codebase, not test-only code.
Threat Model Context
This is a containerized service - vulnerabilities may be exploitable depending on network exposure.
Changes
src/go/go.modsrc/go/go.sumVerification
This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.
Automated security fix by OrbisAI Security
Summary by cubic
Upgrade
github.com/prometheus/prometheusto v0.311.3 to fix CVE-2026-42151 (Azure OAuth client secret disclosure via config API). Touchessrc/go/go.modandsrc/go/go.sum; resolves a high-severity finding flagged bytrivy.Written for commit edb9a22. Summary will update on new commits.