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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 19.6%, higher than 97% of CVEs (2026-12-01)
- Published: 2021-05-19T20:00:13.000Z
- Modified: 2026-09-08T08:48:18.773Z
- Also known as: GHSA-vx57-7f4q-fpc7, BIT-PROMETHEUS-2021-29622
- Weaknesses: CWE-601
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- prometheus prometheus: >= 2.23.0, < 2.27.1; from 2.23.0 before 2.26.1; 2.27.0
- github.com/prometheus/prometheus (Go): from 2.23.0 before 2.26.1; from 2.27.0 before 2.27.1
- prometheus (Bitnami): from 2.23.0 before 2.26.1; from 2.27.0 before 2.27.1

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7> (advisory, third-party-advisory, web)
- <https://github.com/prometheus/prometheus/releases/tag/v2.26.1> (advisory, third-party-advisory, web)
- <https://github.com/prometheus/prometheus/releases/tag/v2.27.1> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29622> (advisory, web)

## Sources

- CVE List: [CVE-2021-29622](https://www.cve.org/CVERecord?id=CVE-2021-29622), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-vx57-7f4q-fpc7](https://github.com/advisories/GHSA-vx57-7f4q-fpc7), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-29622](https://nvd.nist.gov/vuln/detail/CVE-2021-29622), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-PROMETHEUS-2021-29622](https://osv.dev/vulnerability/BIT-PROMETHEUS-2021-29622), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-29622 · Whole record: https://cve.day/CVE-2021-29622.json · Rebuilt by cve.day 2026-11-25T22:58:01.461Z
