CVE-2021-37699
Open Redirect in Next.js versions below 11.1.0
In short
Next.js versions before 11.1.0 allow attackers to craft specially encoded URLs that redirect users to external malicious websites when the error page is statically generated. This can be exploited for phishing attacks by making users trust a redirect from a legitimate domain.
Technical detail
Open redirect vulnerability in statically generated _error.js pages allows attackers to bypass redirect validation through specially encoded path manipulation, enabling redirection to attacker-controlled domains. This requires static generation of the error page and can be chained with social engineering for credential harvesting or malware distribution.
Summary generated and translated by AI from the official description.
Next.js is an open source website development framework to be used with the React library. In affected versions specially encoded paths could be used when pages/_error.js was statically generated allowing an open redirect to occur to an external site. In general, this redirect does not directly harm users although can allow for phishing attacks by redirecting to an attacker's domain from a trusted domain. We recommend everyone to upgrade regardless of whether you can reproduce the issue or not. The issue has been patched in release 11.1.0.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
Affected products
vercel · next.jsWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →