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

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 38.9%, higher than 98% of CVEs (2026-12-01)
- Published: 2020-03-30T20:40:11.000Z
- Modified: 2026-09-10T03:48:29.156Z
- Also known as: GHSA-fq77-7p7r-83rj
- Weaknesses: CWE-22, CWE-23
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zeit next.js: < 9.3.2; before 9.3.2
- next (npm): from 0.9.9 before 9.3.2

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/zeit/next.js/security/advisories/GHSA-fq77-7p7r-83rj> (third-party-advisory, web)
- <https://github.com/zeit/next.js/releases/tag/v9.3.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5284> (advisory)
- <https://www.npmjs.com/advisories/1503> (web)

## Sources

- CVE List: [CVE-2020-5284](https://www.cve.org/CVERecord?id=CVE-2020-5284), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-fq77-7p7r-83rj](https://github.com/advisories/GHSA-fq77-7p7r-83rj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5284](https://nvd.nist.gov/vuln/detail/CVE-2020-5284), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5284 · Whole record: https://cve.day/CVE-2020-5284.json · Rebuilt by cve.day 2026-11-25T22:57:51.714Z
