next
Affected
- introduced
0.9.9, fixed11.1.0(semver)
Fixed versions
11.1.0
Fix
- Fixed version
11.1.0npm install [email protected]
Advisory
Also known as: CVE-2021-37699
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
10.0.5 and 10.2.011.0.0 and 11.0.1 using pages/_error.js without getInitialProps11.0.0 and 11.0.1 using pages/_error.js and next exportpages/404.jsnext 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
Medium Basis: The source's own band: MODERATE
0.9.9, fixed 11.1.0 (semver)11.1.0
11.1.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0