Skip to content
OpenAdvisories
Medium · 4.4 Scanner template CVE-2020-5284 EUVD-2020-0342GHSA-fq77-7p7r-83rj

Directory Traversal in Next.js versions below 9.3.2

Published Mar 30, 2020 · Updated Aug 4, 2024 · 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.

Affected products

VendorProductAffectedFixed
zeit next.js < 9.3.2 —

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm next >= 0.9.9, < 9.3.2 9.3.2 GHSA-fq77-7p7r-83rj

References