GO-2026-5662
Prometheus has Stored XSS via metric names and label values in Prometheus web UI tooltips and metrics explorer in github.com/prometheus/prometheus
Details
Prometheus has Stored XSS via metric names and label values in Prometheus web UI tooltips and metrics explorer in github.com/prometheus/prometheus.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: .
Are you affected?
Enter the version of the package you're using.
Affected packages
0 No fixed version published yet for github.com/prometheus/prometheus (go modules). Pin to a known-safe version or switch to an alternative.
0 No fixed version published yet for github.com/prometheus/prometheus (go modules). Pin to a known-safe version or switch to an alternative.
0 Fixed in: 0.311.2-0.20260410083055-07c6232d159b go get github.com/prometheus/prometheus@v0.311.2-0.20260410083055-07c6232d159b References
- https://github.com/prometheus/prometheus/security/advisories/GHSA-vffh-x6r8-xx99 [ADVISORY]
- https://nvd.nist.gov/vuln/detail/CVE-2026-40179 [ADVISORY]
- https://github.com/prometheus/prometheus/commit/07c6232d159bfb474a077788be184d87adcfac3c [FIX]
- https://github.com/prometheus/prometheus/pull/18506 [FIX]