github.com/prometheus/prometheus vulnerabilities

Registry
Go
Latest
0.316.0

9 known advisories

The latest version, 0.316.0, is not affected by any of them. Projects on older versions may be.

Update to the latest version:go get github.com/prometheus/prometheus@v0.316.0

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

Security advisories for github.com/prometheus/prometheus

  • LowCVE-2026-40179GO-2026-566225 Jun 2026

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

    Affected
    <0.311.2-0.20260410083055-07c6232d159b
    Fixed in
    0.311.2-0.20260410083055-07c6232d159b
  • LowCVE-2026-42151GO-2026-571025 Jun 2026

    Prometheus Azure AD remote write OAuth client secret exposed via config API in github.com/prometheus/prometheus

    Affected
    >=0.45.2 <0.311.3
    Fixed in
    0.311.3
  • LowCVE-2026-44903GO-2026-538125 Jun 2026

    Prometheus vulnerable to stored XSS via crafted histogram bucket label values in the old web UI heatmap display in github.com/prometheus/prometheus

    Affected
    <0.311.3
    Fixed in
    0.311.3
  • LowCVE-2026-42154GO-2026-526425 Jun 2026

    Prometheus: Remote read endpoint allows denial of service via crafted snappy payload in github.com/prometheus/prometheus

    Affected
    <0.305.2 · >=0.306.0 <0.311.3 · >=1.0.0-rc.0
    Fixed in
    0.305.2, 0.311.3
  • MediumCVE-2026-44903GHSA-fw8g-cg8f-9j285 May 2026

    Prometheus vulnerable to stored XSS via crafted histogram bucket label values in the old web UI heatmap display

    Affected
    <0.311.3
    Fixed in
    0.311.3
  • HighCVE-2026-42154GHSA-8rm2-7qqf-34qm5 May 2026

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

    Affected
    >=0.306.0 <0.311.3 · <0.305.2 · >=1.0.0-rc.0 <=2.5.0
    Fixed in
    0.305.2, 0.311.3
  • HighCVE-2026-42151GHSA-wg65-39gg-5wfj5 May 2026

    Prometheus Azure AD remote write OAuth client secret exposed via config API

    Affected
    >=0.45.2 <0.311.3
    Fixed in
    0.311.3
  • MediumCVE-2026-40179GHSA-vffh-x6r8-xx9913 Apr 2026

    Prometheus has Stored XSS via metric names and label values in Prometheus web UI tooltips and metrics explorer

    Affected
    >=3.0.0 <3.5.2 · >=3.6.0 <3.11.2 · <0.311.2-0.20260410083055-07c6232d159b
    Fixed in
    0.311.2-0.20260410083055-07c6232d159b, 3.5.2, 3.11.2
  • HighGHSA-4v48-4q5m-8vx45 Dec 2022

    Prometheus vulnerable to basic authentication bypass

    Affected
    >=2.24.1 <2.37.4 · >=2.38.0 <2.40.4
    Fixed in
    2.37.4, 2.40.4

Is your github.com/prometheus/prometheus version vulnerable?

Which of your client projects still run an old github.com/prometheus/prometheus?

NPMscan reads the go.mod in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Go packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Go registry.