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.
Recent assessments:
Mad-robot at July 05, 2020 1:51pm UTC reported:
Next.js Path traversal
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.
PROOF OF CONCEPT
HTTP://localhost/_next/static/../server/pages-manifest.json
Assessed Attacker Value: 3
Assessed Attacker Value: 3Assessed Attacker Value: 5