Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2020-5284: Next.js versions before 9.3.2 have a directory traversal vulnerability

40
This week
MEDIUM 4.4UPGRADE

CVE-2020-5284 is a medium-severity flaw (CVSS 4.4) affecting next.js. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 this priority

  • EPSS top 1%: very likely to be exploited

A fixed release or distro patch exists.

Risk facts

CVSS score4.4 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededLow
User interactionRequired
EPSS exploit chance44.8% (top 1%)
CISA exploited listNo
WeaknessCWE-23, CWE-22
Published2020-03-30
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: zeit

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

zeit next.js UPGRADE
Affected: < 9.3.2
Fixed in: 9.3.2
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy next.js || rpm -q next.js || next.js --version
2. UPGRADE to 9.3.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade next.js
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade next.js
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2020-5284?

next.js: upgrade to 9.3.2. Exact commands for each OS are on this page.

Is CVE-2020-5284 being exploited?

CVE-2020-5284 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2020-5284 affect?

CVE-2020-5284 affects next.js. Severity is medium (CVSS 4.4). 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

How urgent is CVE-2020-5284?

Priority 40/100. EPSS top 1%: very likely to be exploited

Software pages

Next.js vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.