Skip to content

Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - #345

Open
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
deps-update/main/go-github.com-prometheus-client_golang-vulnerability
Open

Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY]#345
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
deps-update/main/go-github.com-prometheus-client_golang-vulnerability

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented Jul 2, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
github.com/prometheus/client_golang v1.11.0v1.11.1 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Uncontrolled Resource Consumption in promhttp

CVE-2022-21698 / GHSA-cg3q-j54f-5p7p / GO-2022-0322

More information

Details

This is the Go client library for Prometheus. It has two separate parts, one for instrumenting application code, and one for creating clients that talk to the Prometheus HTTP API. client_golang is the instrumentation library for Go applications in Prometheus, and the promhttp package in client_golang provides tooling around HTTP servers and clients.

Impact

HTTP server susceptible to a Denial of Service through unbounded cardinality, and potential memory exhaustion, when handling requests with non-standard HTTP methods.

Affected Configuration

In order to be affected, an instrumented software must

  • Use any of promhttp.InstrumentHandler* middleware except RequestsInFlight.
  • Do not filter any specific methods (e.g GET) before middleware.
  • Pass metric with method label name to our middleware.
  • Not have any firewall/LB/proxy that filters away requests with unknown method.
Patches
Workarounds

If you cannot upgrade to v1.11.1 or above, in order to stop being affected you can:

  • Remove method label name from counter/gauge you use in the InstrumentHandler.
  • Turn off affected promhttp handlers.
  • Add custom middleware before promhttp handler that will sanitize the request method given by Go http.Request.
  • Use a reverse proxy or web application firewall, configured to only allow a limited set of methods.
For more information

If you have any questions or comments about this advisory:

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Uncontrolled resource consumption in github.com/prometheus/client_golang

CVE-2022-21698 / GHSA-cg3q-j54f-5p7p / GO-2022-0322

More information

Details

The Prometheus client_golang HTTP server is vulnerable to a denial of service attack when handling requests with non-standard HTTP methods.

In order to be affected, an instrumented software must use any of the promhttp.InstrumentHandler* middleware except RequestsInFlight; not filter any specific methods (e.g GET) before middleware; pass a metric with a "method" label name to a middleware; and not have any firewall/LB/proxy that filters away requests with unknown "method".

Severity

Unknown

References

This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).


Release Notes

prometheus/client_golang (github.com/prometheus/client_golang)

v1.11.1: 1.11.1 / 2022-02-15

Compare Source

  • [SECURITY FIX] promhttp: Check validity of method and code label values #​987 (Addressed CVE-2022-21698)

What's Changed

Full Changelog: prometheus/client_golang@v1.11.0...v1.11.1


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

@red-hat-konflux
red-hat-konflux Bot force-pushed the deps-update/main/go-github.com-prometheus-client_golang-vulnerability branch 3 times, most recently from f2b46cb to e17746f Compare July 2, 2026 04:26
@openshift-ci

openshift-ci Bot commented Jul 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: red-hat-konflux[bot]

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

2 similar comments
@openshift-ci

openshift-ci Bot commented Jul 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: red-hat-konflux[bot]

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci

openshift-ci Bot commented Jul 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: red-hat-konflux[bot]

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Jul 4, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 4, 2026
@red-hat-konflux
red-hat-konflux Bot deleted the deps-update/main/go-github.com-prometheus-client_golang-vulnerability branch July 4, 2026 00:34
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Jul 4, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jul 4, 2026
@red-hat-konflux
red-hat-konflux Bot force-pushed the deps-update/main/go-github.com-prometheus-client_golang-vulnerability branch 5 times, most recently from e17746f to 346ef17 Compare July 4, 2026 04:34
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Jul 16, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 16, 2026
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Jul 16, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jul 16, 2026
@red-hat-konflux
red-hat-konflux Bot force-pushed the deps-update/main/go-github.com-prometheus-client_golang-vulnerability branch 8 times, most recently from 7580979 to 4d1e053 Compare July 16, 2026 12:23
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Jul 21, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 21, 2026
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Jul 21, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jul 21, 2026
@red-hat-konflux
red-hat-konflux Bot force-pushed the deps-update/main/go-github.com-prometheus-client_golang-vulnerability branch 6 times, most recently from 91ded5c to 649e51b Compare July 21, 2026 21:02
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Jul 27, 2026
@red-hat-konflux red-hat-konflux Bot closed this Jul 27, 2026
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux red-hat-konflux Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Jul 27, 2026
@red-hat-konflux red-hat-konflux Bot reopened this Jul 27, 2026
@red-hat-konflux
red-hat-konflux Bot force-pushed the deps-update/main/go-github.com-prometheus-client_golang-vulnerability branch 2 times, most recently from 649e51b to efd54cf Compare July 27, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants