CVE-2020-5284: Next.js versions before 9.3.2 have a directory traversal vulnerability
CVE-2020-5284 is a medium-severity flaw (CVSS 4.4) affecting next.js. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Next.js versions before 9.3.2 have a directory traversal vulnerability. Attackers could craft special requests to access files in the dist directory (.next). This does not affect files outside of the dist directory (.next). In general, the dist directory only holds build assets unless your application intentionally stores other assets under this directory. This issue is fixed in version 9.3.2.
Why this priority
- EPSS top 1%: very likely to be exploited
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Nuclei scan template: Next.js <9.3.2 - Local File Inclusion
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-5284?
next.js: upgrade to 9.3.2. Exact commands for each OS are on this page.
Is CVE-2020-5284 being exploited?
CVE-2020-5284 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2020-5284 affect?
CVE-2020-5284 affects next.js. Severity is medium (CVSS 4.4). Next.js versions before 9.3.2 have a directory traversal vulnerability. Attackers could craft special requests to access files in the dist directory (.next). This does not affect files outside of the dist directory (.next). In general, the
How urgent is CVE-2020-5284?
Priority 40/100. EPSS top 1%: very likely to be exploited
Software pages
Related CVEs
- CVE-2026-44572 LOW 3.7 UPGRADE Next.js is a React framework for building full-stack web applications
- CVE-2026-44575 HIGH 7.5 UPGRADE Next.js is a React framework for building full-stack web applications
- CVE-2026-44573 HIGH 7.5 UPGRADE Next.js is a React framework for building full-stack web applications
- CVE-2026-44574 HIGH 8.1 UPGRADE Next.js is a React framework for building full-stack web applications
- CVE-2026-44577 MEDIUM 5.9 UPGRADE Next.js is a React framework for building full-stack web applications