Arbitrary Code Injection Affecting next package, versions >=14.3.0-canary.77 <15.0.5>=15.1.0 <15.1.9>=15.2.0-canary.0 <15.2.6>=15.3.0-canary.0 <15.3.6>=15.4.0-canary.0 <15.4.8>=15.5.1-canary.0 <15.5.7>=16.0.0-beta.0 <16.0.7


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 Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NEXT-14173355
  • published3 Dec 2025
  • disclosed3 Dec 2025
  • creditLachlan Davidson

Introduced: 3 Dec 2025

NewCVE-2025-66478  (opens in a new tab)
CWE-502  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade next to version 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Arbitrary Code Injection via unsafe deserialization of RSC payloads from HTTP requests to Server Function endpoints. An unauthenticated attacker can execute arbitrary code on the server by sending malicious HTTP requests.

Note:

Serverless applications and applications that do not use a framework, bundler, or bundler plugin that supports React Server Components are not affected by this vulnerability.

Next.js 13.x, Next.js 14.x stable, Pages Router applications, and the Edge Runtime are not affected.

This vulnerability originates in the upstream React implementation CVE-2025-55182. This advisory (CVE-2025-66478) tracks the downstream impact on Next.js applications using the App Router.

CVSS Base Scores

version 4.0
version 3.1