Next.js .next/ limited path traversal

Published on
10 Jan 2022
Vulnerability

Description

A directory traversal vulnerability exists in versions of Next.js prior to 9.3.2. Unauthenticated Attackers could craft special requests to access files in the dist directory (.next). Outside of the dist directory, this has no effect (.next). Unless your application contains other assets in the dist directory, the dist directory should solely contain build assets. This issue has been addressed in version 9.3.2.

Recommendation

  • Update Next.js to the latest version
Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.
Find website security issues in a flash
Improve your website's security posture with proactive vulnerability detection.
Free website security assessment