CVE-2021-37699: Open Redirect in Next.js
6.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6173%
CWE
Published
8/12/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
next | npm | >= 0.9.9, < 11.1.0 | 11.1.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability specifically manifests in the static generation logic for pages/_error.js when: 1) No getInitialProps is defined (removing runtime validation), or 2) next export is used (forcing static generation). The advisory indicates improper handling of encoded paths during static HTML generation for error pages, which normally occurs through Next.js' internal static export pipeline. While no explicit function names are disclosed in the advisory, the root cause lies in the framework's path normalization logic during static generation of error pages, as patched in v11.1.0. The combination of version ranges, error page usage patterns, and static export context uniquely identifies this code path as vulnerable.