AppInspected

Fix guides

Is your Next.js app still running a version with React2Shell? How to check in one minute.

Last reviewed November 9, 2026 against the providers' current documentation.

The short version

Open your live site, open the browser console and type next.version. If your app uses the App Router and the version is 15.0.0 to 15.0.4, 15.1.0 to 15.1.8, 15.2.0 to 15.2.5, 15.3.0 to 15.3.5, 15.4.0 to 15.4.7, 15.5.0 to 15.5.6 or 16.0.0 to 16.0.6, it has React2Shell: upgrade, redeploy and rotate your secrets. To also get the December 11 fixes, upgrade to at least 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9 or 16.0.10 for your release line.

Why it matters

React2Shell is a flaw in the React Server Components protocol (CVE-2025-55182 in React, tracked for Next.js as CVE-2025-66478). Next.js rated it CVSS 10.0: one crafted request to an unpatched App Router app can run code on the server. It was disclosed on December 3, 2025, and cloud providers reported it being exploited within days. The patch only helps once you upgrade and redeploy. An app that was built once and left running, which is common for side projects and AI-built apps, keeps serving the old version. On December 11, 2025, Next.js fixed two more App Router flaws found while researchers examined the patch: one request can hang the server (CVE-2025-55184, fully fixed under CVE-2025-67779), and a Server Function can be made to return the code of other Server Functions (CVE-2025-55183). Neither allows code execution.

Fix it, in this order

  1. See which version your live site runs

    Open your site (the deployed one, not localhost), open the browser's developer tools (F12 or Cmd+Option+I), go to the Console and type next.version. Next.js sets window.next on every page it renders, so this shows the version your users actually get. If next.appDir is true, the page uses the App Router. Our free check reads the same value from your public JavaScript and flags affected versions.
  2. Compare it with the fixed versions

    Next.js lists one fixed release per line. For React2Shell (remote code execution): 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 and 16.0.7. For the December 11 flaws (denial of service, source code exposure): 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9 and 16.0.10. Anything below the number for your line is affected. Next.js 13.x, 14.x stable and Pages Router apps don't have React2Shell; App Router apps on 13.3 and later do have the denial-of-service flaw, and Next.js says to move them to 14.2.35.
  3. Upgrade and redeploy

    Run npx fix-react2shell-next, Vercel's interactive tool that checks your version and bumps it to the recommended release, or install the version for your line yourself, for example npm install next@15.5.9. Then commit the lockfile and redeploy. There is no workaround: Next.js says upgrading is required, and a firewall rule at your host isn't a complete fix.
  4. Rotate your secrets if it was exposed

    Next.js advises that if your app was online and unpatched as of December 4, 2025 at 1:00 PM PT, you should rotate every secret it uses, starting with the most critical: database passwords, payment and AI API keys, auth secrets. Patch and redeploy first, then rotate, so the new values never sit on a vulnerable server.
  5. Check again after the deploy

    Open the live site in a private window and run next.version again, or run the free check below. If the old version still shows, your host is serving an older deployment: check which deployment is assigned to your production domain.

Or ask your AI tool to do it

Paste this into Lovable, Bolt, Cursor, Claude Code or whichever tool built your app. Review what it changes before you deploy.

My Next.js app may be running a version affected by React2Shell (CVE-2025-66478) and the December 11, 2025 React Server Components fixes (CVE-2025-55184, CVE-2025-67779, CVE-2025-55183). Check package.json and the lockfile for the installed next, react and react-dom versions. Upgrade next to the latest patched release in my current release line (at least 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9 or 16.0.10) and React to its matching patched version, without jumping to a new major version unless my line has no fix. Run the build and tests, list any breaking changes, then give me the list of secrets the app uses (environment variable names only) so I can rotate them after the deploy.

How this happens

AI app builders and starter templates pin whatever Next.js version was current when the project was created. Nothing updates it until someone runs an upgrade and redeploys, and many hosts keep serving an old deployment indefinitely. Vercel has blocked new deployments of vulnerable Next.js versions since December 5, 2025, but that doesn't change a deployment that was already live, and self-hosted apps (Docker, a VPS, Netlify or others) depend entirely on you.

Check that it's really fixed

After you deploy, run the free check. It reads your live site the way an attacker would and tells you if any secret key is still visible.

Topic check: Next.js security check

Find the other leaks before someone else does

The free check reads your home page and its scripts. The website security report goes through up to 30 pages and 40 JavaScript files, plus .env and .git files, security headers, cookies and CORS, domain and email records, and libraries with known vulnerabilities. Every finding comes with the fix for your host and a prompt for your AI tool.

$19 once, including 20 runs over 30 days so you can fix things and check again.

Get the report, $19 See an example report

Example report header: a score out of 100, findings by severity, Download PDF and Email me this report.

Questions

I use the Pages Router. Am I affected?

Not by React2Shell or the December 11 flaws: Next.js says Pages Router applications aren't affected. It still recommends upgrading to a patched version, because many apps mix both routers over time.

Is my app on Vercel safe because Vercel patched it?

Not automatically. Vercel added firewall rules and blocks new deployments of vulnerable versions, but your existing deployment keeps the Next.js version it was built with until you upgrade and redeploy. Check the live version as in step 1.

Does the AppInspected free check look for this?

Yes. It reads the Next.js version from your site's public JavaScript and, for App Router apps, flags a React2Shell version as critical and a version missing the December 11 fixes as high. It only reports stable versions it can read; it doesn't guess. The website security report also checks every library version it finds against the OSV vulnerability database, including advisories newer than this guide.

I built my app with v0. What should I do?

v0 apps are Next.js apps, so the same versions apply. See keeping a v0 app patched for the Fix with v0 option.

Sources

Related guides