Advisory

GO-2026-5662

Also known as: BIT-prometheus-2026-40179, CVE-2026-40179, GHSA-vffh-x6r8-xx99

Summary

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

Details

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

Severity

Not rated by the source.

Dates

Published
2026-06-25 22:34 UTC
Modified
2026-07-15 16:27 UTC

Affected packages and fixes

github.com/prometheus/prometheus

Go · All systems

Affected

  • introduced 0, fixed 0.311.2-0.20260410083055-07c6232d159b (semver)

Fixed versions

0.311.2-0.20260410083055-07c6232d159b

Fix

  • Fixed version 0.311.2-0.20260410083055-07c6232d159b
    go get github.com/prometheus/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences