CVE-2020-5284: zeit next.js Relative Path Traversal
Vulnerability summary
CVE-2020-5284 is a medium (CVSS 5.0) Relative Path Traversal vulnerability in zeit next.js. EPSS estimates a 44.78% chance of exploitation in the next 30 days, higher than 98.7% of scored vulnerabilities.
Timeline
- 30-03-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NDiffers
EPSS trend
Probability
44.78%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
+0.44 pp
From 44.33% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-23Relative Path TraversalThe product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Npm1 product
- next≥ 0.9.9, < 9.3.2
Zeit1 product
- next.js< 9.3.2
2 vendors · 2 products
References
4 links- github.com/zeit/next.js/security/advisories/GHSA-fq77-7p7r-83rjX Refsource CONFIRMWEBThird Party Advisory