Cross-site scripting in prometheus - #VU128366

 

Cross-site scripting in prometheus - #VU128366

Published: April 28, 2026


Vulnerability identifier: #VU128366
CSH Severity: Low
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
prometheus
Software vendor:
Prometheus

Description

The vulnerability allows a remote attacker to execute arbitrary JavaScript in the browser of a Prometheus user.

The vulnerability exists due to cross-site scripting in the histogram heatmap chart view of the legacy Prometheus web UI when rendering crafted histogram bucket label values in axis tick mark labels. A remote attacker can inject crafted metrics to execute arbitrary JavaScript in the browser of a Prometheus user.

Only instances with the legacy web UI enabled via the --enable-feature=old-ui flag are vulnerable.


Remediation

Install security update from vendor's website.

External links