Directory Traversal in Next.js versions below 9.3.2
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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 it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| zeit | next.js | before 9.3.2 | 9.3.2 | Patch available | CNA |
| — | next (npm) | 0.9.9 to before 9.3.2 | 9.3.2 | Patch available | GHSA-fq77-7p7r-83rj |
- next.js Vendorzeit Affected before 9.3.2 Fixed in 9.3.2 Patch available CNA
- next (npm) Vendor— Affected 0.9.9 to before 9.3.2 Fixed in 9.3.2 Patch available GHSA-fq77-7p7r-83rj
Remediation
- Fix · CNA next.js (zeit) Fixed in 9.3.2
- Fix · GHSA-fq77-7p7r-83rj next (npm) Fixed in 9.3.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-5284
- 2026-10-03 Alias added: GHSA-fq77-7p7r-83rj
References
More zeit Next.js vulnerabilities
- TI-2017-12422 ZEIT Next.js before 2.4.1 has directory traversal under the /_next and /static request… CVSS 3.0HIGH 7.5
- TI-2018-04542 ZEIT Next.js 4 before 4.2.3 has Directory Traversal under the /_next request namespace. CVSS 3.0HIGH 7.5
- TI-2018-12917 Next.js 7.0.0 and 7.0.1 has XSS via the 404 or 500 /_error page. CVSS 3.0MEDIUM 6.1
Sources
- CVE-2020-5284 · CVE Program
- CVE-2020-5284 · NVD
- FIRST EPSS
- GHSA-fq77-7p7r-83rj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences