HighGHSA-8rm2-7qqf-34qmBIT-prometheus-2026-42154CVE-2026-42154GO-2026-5264

Prometheus: Remote read endpoint allows denial of service via crafted snappy payload

Published 5 May 2026 · Updated 10 Sept 2026

Is your project on an affected github.com/prometheus/prometheus?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=0.306.0 <0.311.3
Fixed in
0.311.3
Update to the fixed version for your release line, for example:go get github.com/prometheus/prometheus@v0.311.3
Affected
<0.305.2
Fixed in
0.305.2
Update to the fixed version for your release line, for example:go get github.com/prometheus/prometheus@v0.305.2
Affected
>=1.0.0-rc.0 <=2.5.0
Fixed in
No fix released

Details

Impact

The remote read endpoint (/api/v1/read) does not validate the declared decoded length in a snappy-compressed request body before allocating memory. An unauthenticated attacker can send a small payload that causes a huge heap allocation per request. Under concurrent load this can exhaust available memory and crash the Prometheus process.

Patches

_Has the problem been patched? What versions should users upgrade to?_

Fixed in 3.11.3 and 3.5.3 LTS. Users should upgrade to these versions or later.

Workarounds

User who can not upgrade can place Prometheus behind a reverse proxy or firewall that requires authentication before requests reach /api/v1/read.

Is GHSA-8rm2-7qqf-34qm in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/prometheus/prometheus, and gives you the command that fixes it.

More advisories for github.com/prometheus/prometheus

  • LowCVE-2026-40179Prometheus has Stored XSS via metric names and label values in Prometheus web UI in github.com/prometheus/prometheus · 25 Jun 2026
  • LowCVE-2026-42151Prometheus Azure AD remote write OAuth client secret exposed via config API in github.com/prometheus/prometheus · 25 Jun 2026
  • LowCVE-2026-44903Prometheus vulnerable to stored XSS via crafted histogram bucket label values in the old web UI heatmap display in github.com/prometheus/prometheus · 25 Jun 2026
  • MediumCVE-2026-44903Prometheus vulnerable to stored XSS via crafted histogram bucket label values in the old web UI heatmap display · 5 May 2026
  • HighCVE-2026-42151Prometheus Azure AD remote write OAuth client secret exposed via config API · 5 May 2026
  • MediumCVE-2026-40179Prometheus has Stored XSS via metric names and label values in Prometheus web UI tooltips and metrics explorer · 13 Apr 2026
All 8 advisories for github.com/prometheus/prometheus

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.