CVE-2021-29622

Arbitrary redirects under /new endpoint

MEDIUM
6.1
CVSS Score
Published: May 19, 2021 at 08:00 PM UTC
Updated: June 17, 2026 at 03:48 AM UTC
1 product affected across 1 vendorPrometheus

Using prometheus by prometheus?

Get instant alerts when new vulnerabilities affect prometheus - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 20%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.27.12.23.0 ≤ v < 2.26.12.27.02.27.0 rc0
Affected range stops below 2.26.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.27.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-601

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card