{"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","GHSA-vx57-7f4q-fpc7"],"modified":"2026-10-20T10:54:38.721195684Z","published":"2021-05-19T20:15:07.487Z","related":["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"],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:a:prometheus:prometheus:2.27.0:rc0:*:*:*:*:*:*"],"extracted_events":[{"range":[{"introduced":"2.27.0-rc0"},{"last_affected":"2.27.0-rc0"}],"source":"CPE_STRING"}],"vendor_product":"prometheus:prometheus"}]},"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":"26d89b4b0776fe4cd5a3656dfa520f119a375273"},{"fixed":"6eeded0fdf760e81af75d9c44ce539ab77da4505"},{"introduced":"24c9b61221f7006e87cd62b9fe2901d43e19ed53"},{"last_affected":"24c9b61221f7006e87cd62b9fe2901d43e19ed53"},{"fixed":"db7f0bcec27bd8aeebad6b08ac849516efa9ae02"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:prometheus:prometheus:*:*:*:*:*:*:*:*","range":[{"introduced":"2.23.0"},{"fixed":"2.26.1"}],"source":"CPE_RANGE"},{"range":[{"introduced":"2.27.0-NA"},{"last_affected":"2.27.0-NA"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:prometheus:prometheus:2.27.0:-:*:*:*:*:*:*"},{"original_tag":"v2.26.1","range":[{"fixed":"6eeded0fdf760e81af75d9c44ce539ab77da4505"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"db7f0bcec27bd8aeebad6b08ac849516efa9ae02"}],"source":"REFERENCES_TAG","original_tag":"v2.27.1"}]}}],"versions":["2.27.0-NA","v2.27.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29622.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}