CVE-2021-37699: Open Redirect in Next.js versions below 11.1.0
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Next.jsto a version that resolves this vulnerability.Fixed in 11.1.0
Event History
Frequently Asked Questions
What is Next.js?
Next.js is an open source website development framework to be used with the React library.
What is the vulnerability ID for Next.js?
The vulnerability ID for Next.js is CVE-2021-37699.
What is the severity of CVE-2021-37699?
The severity of CVE-2021-37699 is medium with a CVSS score of 6.1.
How does CVE-2021-37699 affect Next.js?
In affected versions of Next.js, specially encoded paths could be used to cause an open redirect to an external site when pages/_error.js was statically generated.
How can I fix CVE-2021-37699 in Next.js?
To fix CVE-2021-37699 in Next.js, update to version 11.1.0 or newer. Refer to the Next.js security advisory for more details.