NextJS Security Vulnerability
A critical vulnerability in the React Server Components protocol allowed untrusted inputs to influence server-side execution, potentially leading to remote code execution. An attacker could craft requests that trigger unintended server execution paths in unpatched Next.js applications using the App Router.
nextjs.org
Published on nextjs.org
A critical vulnerability has been identified in the React Server Components (RSC) protocol. The issue is rated CVSS 10.0 and can allow remote code execution when processing attacker-controlled requests in unpatched environments.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a deserialisation flaw in the React Server Components protocol that lets untrusted input influence server-side execution.
Impact
An attacker could achieve remote code execution in unpatched environments, and secrets should be rotated if the application was online and unpatched.
What the attacker needed
Next.js App Router with RSC; unpatched version
The fix
The vulnerability was fixed in patched Next.js releases, and users should upgrade immediately; there is no workaround.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a security flaw in a part of Next.js (a framework for building web apps) called React Server Components. It could let an attacker run their own code on the server just by sending specially crafted requests. The flaw is fixed by updating to a newer version of Next.js.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.