Directory Traversal Affecting next package, versions >=13.4.1-canary.0 <15.5.24>=16.0.0-beta.0 <16.3.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NEXT-19269946
  • published26 Aug 2026
  • disclosed26 Aug 2026
  • creditB0RI, evolutionstorm

Introduced: 26 Aug 2026

NewCVE-2026-75604  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade next to version 15.5.24, 16.3.3 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Directory Traversal in FileSystemCache.getFilePath in packages/next/src/server/lib/incremental-cache/file-system-cache.ts. An attacker can trigger remote code execution on a Windows-hosted server by sending a request that causes the incremental cache to resolve a crafted cache key containing backslashes outside the intended cache directory. When Pages Router or App Router code runs without Cache Components on Windows, the cache path handling can write or read files outside the cache root, letting the attacker influence server-side files that the application later executes.

CVSS Base Scores

version 4.0
version 3.1