{"id":"CVE-2021-29622","published":"2021-05-19T20:00:13Z","modified":"2024-08-03T22:11:06Z","title":"Arbitrary redirects under /new endpoint","vendor":"prometheus","product":"prometheus","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.1956,"percentile":0.97445,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/prometheus/prometheus/releases/tag/v2.26.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/prometheus/prometheus/releases/tag/v2.27.1","tags":["x_refsource_MISC"]}],"priority":{"score":29.0,"factors":[{"name":"EPSS percentile","points":19.49},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"nuclei":[{"id":"CVE-2021-29622","name":"Prometheus - Open Redirect","severity":"medium","path":"http/cves/2021/CVE-2021-29622.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29622.yaml"}],"provenance":"source"},"vendorSlug":"prometheus","affectedVersions":[{"vendor":"prometheus","product":"prometheus","versions":[">= 2.23.0, < 2.27.1"]}],"summary":{"text":"The Prometheus monitoring system's /new endpoint, which redirects to / in the New UI introduced in 2.23.0, contains a bug that lets it redirect to any URL, making it an open redirect. An unauthenticated remote attacker can exploit this by sending a specially crafted link to a user, so exploitation requires the user to visit that address and results in them being sent to an arbitrary site.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:30Z"},"euvd":{"id":"EUVD-2022-1218","exploited":false,"provenance":"source"}}