Impact
Prometheus uses a legacy web UI feature that displays histogram bucket labels as axis tick marks in the heatmap chart. The UI does not escape these label values, so an attacker who can inject crafted metric data can embed arbitrary JavaScript. When any user opens the heatmap chart, the malicious script runs in that user’s browser, enabling client‑side code execution.
Affected Systems
Versions of the Prometheus server from 2.49.0 up to before 3.5.3, and from 3.11.0 up to before 3.11.3, are affected if the legacy UI is enabled with the --enable-feature=old-ui flag. Later releases or deployments that do not enable this flag are not vulnerable.
Risk and Exploitability
The CVSS score of 5.1 indicates a moderate severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply malicious metric labels, typically through a compromised or malicious exporter or data source. Once the injection path exists, any user who views the heatmap chart will have the malicious script executed in their browser.
OpenCVE Enrichment
Github GHSA