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

Published Mar 30, 2020
·
Updated

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 Software

1 affected component
ZEIT Next.js<9.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Next.js to a version that resolves this vulnerability.

    Fixed in 9.3.2

Event History

Mar 30, 2020
CVE Published
via MITRE·08:40 PM
Data Sourced
via MITRE·08:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2020-5284?

CVE-2020-5284 is classified with medium severity due to its potential for directory traversal exploits.

2

How do I fix CVE-2020-5284?

To fix CVE-2020-5284, upgrade Next.js to version 9.3.2 or later.

3

What impact does CVE-2020-5284 have on applications?

CVE-2020-5284 allows attackers to access sensitive files in the dist directory (.next) through crafted requests.

4

Which versions of Next.js are affected by CVE-2020-5284?

Next.js versions prior to 9.3.2 are affected by CVE-2020-5284.

5

Can CVE-2020-5284 compromise my application?

Yes, CVE-2020-5284 can compromise your application by exposing files in the dist directory to unauthorized access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203