Prometheus Legacy Web UI Heatmap Chart Stored Cross-Site Scripting Vulnerability

Vulnerability

A stored cross-site scripting vulnerability has been identified in the Prometheus server's legacy web UI, specifically in versions 2.49.0 prior to 3.5.3 and 3.11.3. When the heatmap chart view is used, the histogram bucket label values are not properly escaped before being inserted into the HTML as axis tick mark labels. This flaw allows an attacker who can inject crafted metrics to execute JavaScript in the browser of any user viewing the heatmap chart. The vulnerability is present when the legacy web UI is enabled via the command-line flag '--enable-feature=old-ui'.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected JavaScript is executed in the context of the user viewing the heatmap chart.

Remediation

Users can update to Prometheus versions 3.5.3 or 3.11.3, where this vulnerability has been patched. If an immediate update is not possible, the legacy web UI can be disabled by removing the '--enable-feature=old-ui' command-line flag. For users who must keep the old UI enabled, it is recommended to ensure that scrape targets are trusted and not under attacker control, and to avoid clicking untrusted links that could inject malicious label data.

Added: May 26, 2026, 11:46 PM
Updated: May 26, 2026, 11:46 PM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
1.7
exploitability
5.3
remediation
8.3
relevance
9.6
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.