CVE-2019-3826: Prometheus XSS Vulnerability

Summary

13/12/2023
MODERATE
Yes i
Moderate
5.4

GHSA-3m87-5598-2v4f: Withdrawn Advisory: Prometheus XSS Vulnerability. Affects github.com/prometheus/prometheus versions < 2.7.1. Fixed in 2.7.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Prometheus is an open-source monitoring and alerting toolkit designed for large-scale distributed systems. It provides a flexible query language, powerful visualizations, and extensive support for integrations. The vulnerability in question affects versions prior to 2.7.1 of the Prometheus package. Prometheus is written in Go and is widely used in various applications and environments.

Vulnerability Detail

The vulnerability identified as CVE-2019-3826 is a stored, DOM-based, cross-site scripting (XSS) flaw in Prometheus. This vulnerability allows an attacker to execute arbitrary scripts and store them persistently. To exploit this vulnerability, an authenticated user must be convinced to visit a specially crafted URL on a Prometheus server. The impact of this vulnerability can range from unauthorized access to sensitive information to the execution of malicious actions within the affected system.

How To Fix

Latest published version: v0.315.1 as of 23 Oct 2026

go get github.com/prometheus/prometheus@v0.315.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.7.1

This is the first release that contains the fix.

go get github.com/prometheus/prometheus@v2.7.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading Prometheus to a patched version.

Conclusion

The Prometheus XSS vulnerability (CVE-2019-3826) poses a moderate risk to systems running affected versions of Prometheus. It is crucial to upgrade to version 2.7.1 or later to mitigate the risk. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for github.com/prometheus/prometheus →

Share this vulnerability

FAQ

Prometheus is an open-source monitoring and alerting toolkit designed for large-scale distributed systems. It provides powerful querying capabilities, visualization tools, and extensive integrations.

The vulnerability allows an attacker to execute arbitrary scripts and store them persistently. This can lead to unauthorized access to sensitive information and the execution of malicious actions within the affected system.

To fix this vulnerability, it is recommended to upgrade Prometheus to version 2.7.1 or later. This version includes the necessary patches to address the XSS flaw.

There is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading Prometheus to a patched version.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/prometheus/prometheus.

How To Fix

Latest published version: v0.315.1 as of 23 Oct 2026

go get github.com/prometheus/prometheus@v0.315.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.7.1

This is the first release that contains the fix.

go get github.com/prometheus/prometheus@v2.7.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback