PT-2025-31355 · Koa · Koa
Published
2025-07-29
·
Updated
2025-07-29
·
CVE-2025-54420
CVSS v3.1
3.5
Low
| Vector | AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Koa (affected versions not specified)
Description
The
back method used for redirect operations in Koa utilizes the user-controllable Referrer header as the redirect target, creating an open redirect condition. The response.redirect() function, specifically when using the 'back' argument, retrieves the Referrer header from the request. If the Referrer header is present, the application redirects to the URL specified in this header. If the Referrer header is absent, it redirects to the alt value or the root path ('/'). This allows an attacker to control the redirect target by manipulating the Referrer header.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Koa