While exploring a production site built with React + Next.js, I hit a route that didnât return HTML.
Instead, it returned the raw React Server Component (RSC) payload.
Things like:
âĒ component tree references
âĒ chunk mappings (/_next/static/...)
âĒ providers (MantineProvider, ThemeProvider, etc.)
Basically, the server streamed internal rendering data instead of a fully hydrated page.
This usually points to:
âĒ incorrect route handling (e.g. non-standard paths like .txt)
âĒ misconfigured SSR / App Router setup
âĒ wrong response headers (serving RSC as plain text instead of HTML)
Not a direct exploit, but still a form of information disclosure.
It exposes framework internals and signals potential deployment gaps.
With frameworks like Next.js, the serverâclient boundary is thin.
If the rendering pipeline breaks, you donât just lose UI â
you expose how your app actually works under the hood.
Curious if others have encountered similar RSC leaks in production?

Top comments (0)