CVE-2021-37699
mediumpriority · track · 24EPSS 0.010 · 64 %ileEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-vxf5-wxwp-m7g9Open Redirect in Next.js2021-08-12ghsa · osvUS
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 it can allow for phishing attacks by redirecting to an attacker's domain from a trusted domain. ### Impact - **Affected:** Users of Next.js between `10.0.5` and `10.2.0` - **Affected:** Users of Next.js between `11.0.0` and `11.0.1` using `pages/_error.js` without `getInitialProps` - **Affected:** Users of Next.js between `11.0.0` and `11.0.1` using `pages/_error.js` and `next export` - **Not affected**: Deployments on Vercel ([vercel.com](https://vercel.com)) are not affected - **Not affected:** Deployments **with** `pages/404.js` - Note that versions prior to 0.9.9 package `next` npm package hosted a different utility (0.4.1 being the latest version of that codebase), and this advisory does not apply to those versions. We recommend upgrading to the latest version of Next.js to improve the overall security of your application. ### Patches https://github.com/vercel/next.js/releases/tag/v11.1.0
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://github.com/vercel/next.js/releases/tag/v11.1.0cnnvd
- https://github.com/vercel/next.js/security/advisories/GHSA-vxf5-wxwp-m7g9cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-37699cnnvd
- https://vigilance.fr/vulnerability/Node-js-next-open-redirect-36131cnnvd
- https://github.com/vercel/next.js/releases/tag/v11.1.0enisa_euvd
- https://github.com/vercel/next.js/security/advisories/GHSA-vxf5-wxwp-m7g9enisa_euvd
- https://github.com/vercel/next.js/releases/tag/v11.1.0Release NotesThird Party Advisorynvd
- https://github.com/vercel/next.js/security/advisories/GHSA-vxf5-wxwp-m7g9Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan