CVE-2019-3826 Cross-site scripting in prometheus
An attacker can execute arbitrary scripts in a victim's browser by tricking an authenticated user into visiting a crafted URL on a Prometheus server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-3826?
CVE-2019-3826 is a medium-severity cross-site scripting vulnerability in Redhat Openshift Container Platform, published on 26 Mar 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A stored, DOM based, cross-site scripting (XSS) flaw was found in Prometheus before version 2.7.1. An attacker could exploit this by convincing an authenticated user to visit a crafted URL on a Prometheus server, allowing for the execution and persistent storage of arbitrary scripts.
Weakness: CWE-79
Which versions are affected by CVE-2019-3826?
It affects 2 products.
Products include Prometheus Prometheus, Redhat Openshift Container Platform.
How do I fix CVE-2019-3826?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2019-3826 being exploited?
There is no known exploitation of CVE-2019-3826 in the wild and no public exploit code.
Other vulnerabilities in Redhat Openshift Container Platform
- CVE-2026-42151 Prometheus Azure AD remote write OAuth client secret exposed via config API
- CVE-2026-42154 Prometheus: remote read endpoint allows denial of service via crafted snappy payload
- CVE-2021-29622 Arbitrary redirects under /new endpoint
- CVE-2026-40179 Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer
- CVE-2026-44903 Prometheus: Stored XSS via crafted histogram bucket label values in the heatmap display of the old Prometheus web UI
Sources
Also known as DEBIAN-CVE-2019-3826, UBUNTU-CVE-2019-3826.