What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: zeit next.js 9.3.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2020-5284 or the next vulnerability affects your stack