CVE-2021-29622: Arbitrary redirects under /new endpoint

CVE-2021-29622 affects 9 listed versions of Prometheus in the Dawnsentry catalogue.

6.1CVSS medium
Proof of concept publicexploitation
20%EPSS (next 30 days)
19 May 2021published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Prometheus

9 of 216 listed versions are affected. Fixed in 2.27.1. The newest release, 3.16.0, is not affected.

2.27.0 2.27.0-rc0 2.26.0 2.25.2 2.25.1 2.25.0 2.24.1 2.24.0 2.23.0

What it is

Prometheus is an open-source monitoring system and time series database. In 2.23.0, Prometheus changed its default UI to the New ui. To ensure a seamless transition, the URL's prefixed by /new redirect to /. Due to a bug in the code, it is possible for an attacker to craft an URL that can redirect to any other URL, in the /new endpoint. If a user visits a prometheus server with a specially crafted address, they can be redirected to an arbitrary URL. The issue was patched in the 2.26.1 and 2.27.1 releases. In 2.28.0, the /new endpoint will be removed completely. The workaround is to disable access to /new via a reverse proxy in front of Prometheus.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD)

Published by GitHub on 19 May 2021. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2021-29622 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.