MediumGHSA-fq77-7p7r-83rjCVE-2020-5284
Directory Traversal in Next.js
Published 30 Mar 2020 · Updated 10 Sept 2026
Affected package
nextnpm
- Affected
- >=0.9.9 <9.3.2
- Fixed in
- 9.3.2
Update to the fixed version for your release line, for example:
npm install next@9.3.2Details
Impact
- Not affected: Deployments on ZEIT Now v2 (https://zeit.co) are not affected
- Not affected: Deployments using the
serverlesstarget - Not affected: Deployments using
next export - Affected: Users of Next.js below 9.3.2
We recommend everyone to upgrade regardless of whether you can reproduce the issue or not.
Patches
https://github.com/zeit/next.js/releases/tag/v9.3.2
References
https://github.com/zeit/next.js/releases/tag/v9.3.2
Is GHSA-fq77-7p7r-83rj in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected next, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.