LowGO-2026-5662BIT-prometheus-2026-40179CVE-2026-40179GHSA-vffh-x6r8-xx99

Prometheus has Stored XSS via metric names and label values in Prometheus web UI in github.com/prometheus/prometheus

Published 25 Jun 2026 · Updated 15 Jul 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 package

Affected
<0.311.2-0.20260410083055-07c6232d159b
Fixed in
0.311.2-0.20260410083055-07c6232d159b
Update to the fixed version for your release line, for example:go get github.com/prometheus/prometheus@v0.311.2-0.20260410083055-07c6232d159b

Details

Prometheus has Stored XSS via metric names and label values in Prometheus web UI in github.com/prometheus/prometheus

Is GO-2026-5662 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-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
  • LowCVE-2026-42154Prometheus: Remote read endpoint allows denial of service via crafted snappy payload 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-42154Prometheus: Remote read endpoint allows denial of service via crafted snappy payload · 5 May 2026
  • HighCVE-2026-42151Prometheus Azure AD remote write OAuth client secret exposed via config API · 5 May 2026
All 8 advisories for github.com/prometheus/prometheus

References

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