{"id":"CVE-2021-29622","details":"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.","aliases":["BIT-prometheus-2021-29622"],"modified":"2026-02-12T00:44:53.496763Z","published":"2021-05-19T20:15:07.487Z","related":["GHSA-vx57-7f4q-fpc7","SUSE-SU-2021:2664-1","SUSE-SU-2021:2673-1","SUSE-SU-2021:2675-1","SUSE-SU-2021:3907-1","SUSE-SU-2021:3908-1","openSUSE-SU-2021:1162-1","openSUSE-SU-2021:2664-1","openSUSE-SU-2021:2675-1","openSUSE-SU-2024:10814-1"],"references":[{"type":"ADVISORY","url":"https://github.com/prometheus/prometheus/releases/tag/v2.26.1"},{"type":"ADVISORY","url":"https://github.com/prometheus/prometheus/releases/tag/v2.27.1"},{"type":"ADVISORY","url":"https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/prometheus/prometheus","events":[{"introduced":"0"},{"fixed":"6eeded0fdf760e81af75d9c44ce539ab77da4505"},{"introduced":"0"},{"fixed":"db7f0bcec27bd8aeebad6b08ac849516efa9ae02"},{"introduced":"26d89b4b0776fe4cd5a3656dfa520f119a375273"},{"fixed":"6eeded0fdf760e81af75d9c44ce539ab77da4505"}]}],"versions":["v2.19.3","v2.23.0","v2.24.0","v2.24.0-rc.0","v2.24.1","v2.25.0","v2.25.0-rc.0","v2.25.1","v2.25.2","v2.26.0","v2.26.0-rc.0","v2.27.0","v2.27.0-rc.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29622.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}