Skip to content
DoS Write-up Intermediate

Two new RSC protocol vulnerabilities uncovered

Two vulnerabilities in the React Server Components protocol affect Next.js App Router applications: a denial of service where a crafted request causes an infinite loop that hangs the server, and a source code exposure where a crafted request makes a Server Function return the compiled source code of other Server Functions, potentially revealing business logic or inlined secrets.

nextjs.org

Published on nextjs.org

Two additional vulnerabilities have been identified in the React Server Components (RSC) protocol. These issues were discovered while security researchers examined the patches for React2Shell.

The author, on nextjs.org

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 flaw in how the RSC protocol deserialises specially crafted HTTP requests, leading to an infinite loop or unintended return of compiled source code.

Impact

The denial of service can hang the server process and prevent future HTTP requests from being served; the source code exposure could reveal business logic and, if secrets are defined directly in code and referenced within a Server Function, those secrets could be exposed.

What the attacker needed

Next.js App Router with RSC; crafted HTTP request

The fix

The vulnerabilities were fixed in specific Next.js versions; users must upgrade to the latest patched version for their release line, and 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.

React Server Components is a feature of the React library that lets parts of a web page be rendered on the server. A denial of service means an attacker can send a special request that makes the server get stuck and stop responding to other users. A source code exposure means an attacker can trick the server into sending back the original programming code of the application, which might contain sensitive information like passwords if they were written directly in the code.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.