{"id":"CVE-2021-29622","aliases":["CVE-2021-29622","GHSA-vx57-7f4q-fpc7","BIT-PROMETHEUS-2021-29622"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary redirects under /new endpoint","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn 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 /.\nDue 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.\n\nIf a user visits a prometheus server with a specially crafted address (e.g.: `http://127.0.0.1:9090/new/new<url>`), they can be redirected to an arbitrary URL.\n\ne.g. if a user visits http://127.0.0.1:9090/new/newhttp://www.google.com/, they will be redirected to http://google.com.\n\n### Patches\n\nThe issue will be patched in 2.26.1 and 2.27.1 releases.\nIn 2.28.0, the /new endpoint will be removed completely.\n\n### Workarounds\n\nThe workaround is to disable access to /new via a reverse proxy in front of Prometheus.\n\nNote: Users who use a `--web.external-url=` flag _with a path_ (e.g.  `--web.external-url=http://example.com/prometheus`) are not affected.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please use our community channels (https://prometheus.io/community).\nOur security policy is available at https://prometheus.io/docs/operating/security/","format":"markdown","source":"ghsa"},{"lang":"es","text":"Prometheus es un sistema de monitoreo de código abierto y una base de datos de series de tiempo.&#xa0;En la versión 2.23.0, Prometheus cambió su Interfaz de Usuario predeterminada a la Nueva interfaz de usuario.&#xa0;Para garantizar una transición sin problemas, la URL con el prefijo /new redirecciona a /.&#xa0;Debido a un bug en el código, es posible para un atacante diseñar una URL que pueda redireccionar a cualquier otra URL, en el endpoint /new.&#xa0;Si un usuario visita un servidor de Prometheus con una dirección especialmente diseñada, ellos pueden ser redirigidos a una URL arbitraria.&#xa0;El problema fue parcheado en las versiones 2.26.1 y 2.27.1.&#xa0;En la versión 2.28.0, el endpoint /new será eliminado completamente.&#xa0;La solución es deshabilitar un acceso a /new por medio de un proxy inverso en frente de Prometheus","source":"nvd"}],"published":"2021-05-19T20:00:13.000Z","modified":"2026-09-08T08:48:18.773Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":">= 2.23.0, < 2.27.1","status":"affected"}],"vendor":"prometheus","product":"prometheus","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.23.0","status":"affected","fixed":"2.26.1"}],"ecosystem":"Go","package":"github.com/prometheus/prometheus","purl":"pkg:golang/github.com/prometheus/prometheus","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.27.0","status":"affected","fixed":"2.27.1"}],"ecosystem":"Go","package":"github.com/prometheus/prometheus","purl":"pkg:golang/github.com/prometheus/prometheus","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.23.0","fixed":"2.26.1"},{"status":"affected","version":"2.27.0"},{"status":"affected","version":"2.27.0"}],"vendor":"prometheus","product":"prometheus","cpe":"cpe:2.3:a:prometheus:prometheus:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.23.0","status":"affected","fixed":"2.26.1"},{"type":"semver","introduced":"2.27.0","status":"affected","fixed":"2.27.1"}],"ecosystem":"Bitnami","package":"prometheus","purl":"pkg:bitnami/prometheus","source":"bitnami"}],"references":[{"url":"https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/prometheus/prometheus/releases/tag/v2.26.1","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/prometheus/prometheus/releases/tag/v2.27.1","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29622","tags":["advisory","web"],"sources":["ghsa","bitnami"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29622","url":"https://www.cve.org/CVERecord?id=CVE-2021-29622","licence":"CVE Terms of Use","modified":"2024-08-03T22:11:06.291Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vx57-7f4q-fpc7","url":"https://github.com/advisories/GHSA-vx57-7f4q-fpc7","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:38.170Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29622","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29622","licence":"Public domain","modified":"2026-06-17T03:48:02.743Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PROMETHEUS-2021-29622","url":"https://osv.dev/vulnerability/BIT-PROMETHEUS-2021-29622","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.773Z"}],"updatedAt":"2026-11-25T22:58:01.461Z","epss":{"score":0.1956,"percentile":0.97442,"date":"2026-12-01T12:00:22.000Z"}}