Open redirect in koa - CVE-2025-54420
Published: July 29, 2025 / Updated: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to redirect users of a Koa application to an attacker-controlled external site.
The vulnerability exists due to Koa's redirect handling trusting the user-controlled Referer header when an application invokes the back redirect feature. An unauthenticated remote attacker can supply an external URL in that header when requesting an affected route, causing the application to issue a redirect to that URL.