CVE-2021-29622
mediumpriority · track · 31EPSS 0.196 · 97 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-vx57-7f4q-fpc7Arbitrary redirects under /new endpoint2022-02-15ghsa · osvUS
### Impact 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 (e.g.: `http://127.0.0.1:9090/new/new<url>`), they can be redirected to an arbitrary URL. e.g. if a user visits http://127.0.0.1:9090/new/newhttp://www.google.com/, they will be redirected to http://google.com. ### Patches The issue will be patched in 2.26.1 and 2.27.1 releases. In 2.28.0, the /new endpoint will be removed completely. ### Workarounds The workaround is to disable access to /new via a reverse proxy in front of Prometheus. Note: Users who use a `--web.external-url=` flag _with a path_ (e.g. `--web.external-url=http://example.com/prometheus`) are not affected. ### For more information If you have any questions or comments about this advisory, please use our community channels (https://prometheus.io/community). Our security policy is available at https://prometheus.io/docs/operating/security/
- BIT-prometheus-2021-29622Arbitrary redirects under /new endpoint2024-03-06vendor · osvUS
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.
also known as (5)
Other names and identifiers for this entity.
- CNNVD-202105-1257cnnvd
- EUVD-2022-1218enisa_euvd
- GHSA-vx57-7f4q-fpc7enisa_euvd
- BIT-prometheus-2021-29622osv
- GHSA-vx57-7f4q-fpc7osv
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://github.com/prometheus/prometheus/releases/tag/v2.26.1cnnvd
- https://github.com/prometheus/prometheus/releases/tag/v2.27.1cnnvd
- https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7cnnvd
- https://vigilance.fr/vulnerability/Prometheus-open-redirect-via-new-Endpoint-36129cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.2555cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.2746cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021051910cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021052521cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan