CVE-2020-5284 Details
Description
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.
A directory traversal vulnerability has been identified in Next.js versions prior to 9.3.2. This vulnerability allows attackers to craft requests that access files within the .next (dist) directory. The issue does not affect files outside of this directory. Typically, the dist directory contains build assets, unless the application intentionally places other files there. The vulnerability arises when the application is deployed using 'next start', leaving it open to exploitation.
Users are advised to upgrade to Next.js version 9.3.2 or later. Instructions for upgrading are available in the Next.js release notes.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zeit/next.js/releases/tag/v9.3.2 | CVE | Release Notes |
| https://github.com/zeit/next.js/security/advisories/GHSA-fq77-7p7r-83rj | CVE | Third Party Advisory |
| https://github.com/zeit/next.js/releases/tag/v9.3.2 | [email protected] | Release Notes |
| https://github.com/zeit/next.js/security/advisories/GHSA-fq77-7p7r-83rj | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-23 | Relative Path Traversal | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| zeit next.js | < 9.3.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 1, 2020 | Initial Analysis | [email protected] |
| Mar 30, 2020 | CVE Modified | [email protected] |