Skip to content

CVE-2020-5284 Directory Traversal in Next.js versions below 9.3.2

MediumCVSS 4.3 EPSS 44.8% Scanner template
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm next(npm) >= 0.9.9, < 9.3.2 9.3.2 Fixed
zeit next.js < 9.3.2; = < 9.3.2 9.3.2 Fixed

Affected products

ProductAffected versionsFixed in
npm next(npm) >= 0.9.9, < 9.3.2 9.3.2
zeit next.js < 9.3.2 9.3.2
zeit next.js = < 9.3.2 No fix listed

References