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.
Remediation
References
Related Vulnerabilities
WordPress Plugin FancyBox for WordPress Security Bypass (3.0.2)
Internet Information Services Other Vulnerability (CVE-2001-0508)
Squid Improper Input Validation Vulnerability (CVE-2016-2569)
Dolibarr Improper Control of Generation of Code ('Code Injection') Vulnerability (CVE-2019-11201)
Moodle Permissions, Privileges, and Access Controls Vulnerability (CVE-2011-4308)