🛡️ CVE-2021-37699 — next
Description
Open Redirect in Next.js
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.5and10.2.0 - Affected: Users of Next.js between
11.0.0and11.0.1usingpages/_error.jswithoutgetInitialProps - Affected: Users of Next.js between
11.0.0and11.0.1usingpages/_error.jsandnext 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
nextnpm 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
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality high, integrity low, availability none.
Weakness class
CVE-2021-37699 is classified as CWE-601: Open Redirect. A redirect target is taken from user input, so a trusted link can send the visitor to an attacker's site.
Affected software
CVE-2021-37699 is recorded against 1 package.
- next
Timeline and source
Published on 12 August 2021 and last revised on 8 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
github.com (Web)
nvd.nist.gov (Advisory)
github.com (Package)
github.com (Web)
Details
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| next | — | — |
References
Similar Threats
- Unknown CLSA-2026-1786360051
- Unknown CLSA-2026-1775003178
- Medium CVE-2025-48068
- Low CVE-2025-32421
- Medium CVE-2025-30218
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2021-37699?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2021-37699 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.