Skip to content

Conversation

@vercel
Copy link

@vercel vercel bot commented Dec 8, 2025

Important

This is an automatic PR generated by Vercel to help you with patching efforts. We can't guarantee it's comprehensive, and it may contain mistakes. Please review our guidance before merging these changes.

A critical remote code execution (RCE) vulnerability in React Server Components, impacting frameworks such as Next.js, was identified in the project speed-insights-nextjs. The vulnerability enables unauthenticated RCE on the server via insecure deserialization in the React Flight protocol.

This issue is tracked under:

This automated pull request upgrades the affected React and Next.js packages to patched versions that fully remediate the issue.

More Info | security@vercel.com

React Flight / Next.js RCE Advisory - Vulnerability Fix

SUMMARY:
This repository was assessed for the React Flight / Next.js RCE advisory and patched where affected.

VULNERABILITY DETECTION:
✅ Project is affected by the advisory
Found the following vulnerable packages:
- next@16.0.3 in apps/nextjs/package.json (via "latest" specifier)
- next@14.0.4 in packages/web/package.json (devDependency)

OTHER PACKAGES CHECKED:
- apps/astro: Not vulnerable (no Next.js or React Flight packages)
- apps/nuxt: Not vulnerable (no Next.js or React Flight packages)  
- apps/remix: Not vulnerable (no Next.js or React Flight packages)
- apps/sveltekit: Not vulnerable (no Next.js or React Flight packages)
- apps/vue: Not vulnerable (no Next.js or React Flight packages)
- Root package.json: Not vulnerable (no Next.js or React Flight packages)

CHANGES MADE:

1. Modified: apps/nextjs/package.json
   - Updated "next": "latest" → "next": "16.0.7"
   - Reason: Upgraded Next.js 16.x to patched version 16.0.7 to address RCE vulnerability

2. No changes to packages/web/package.json
   - Reason: next@14.0.4 doesn't match any of the upgrade rules specified:
     - Rules only cover 14.3.0-canary.77+ (downgrade to canary.76)
     - Rules don't cover 14.0.x stable releases
     - To maintain stability, only versions explicitly listed were updated

3. Updated: pnpm-lock.yaml
   - Resolved next@16.0.7 and all its transitive dependencies
   - React/React-DOM automatically updated to compatible patched versions by Next.js
   - All other dependencies resolved correctly

VERIFICATION:
✅ Dependencies installed successfully with `pnpm install`
✅ Build verification passed for apps/nextjs with `pnpm build`
  - Next.js 16.0.7 compiled successfully
  - All static pages generated without errors
  - TypeScript type checking passed
✅ Lockfile properly reflects patched versions
  - next@16.0.7 present in apps/nextjs section of pnpm-lock.yaml
  - React and React-DOM automatically aligned to 19.2.1 (compatible with patched Next.js)

NOTES:
- The "latest" specifier in apps/nextjs/package.json has been pinned to 16.0.7 for security and stability
- React and React-DOM in apps/nextjs remain at "latest" as per the advisory guidance (Next.js manages React versions automatically)
- No React Flight packages (react-server-dom-webpack, react-server-dom-parcel, react-server-dom-turbopack) were found in the monorepo, so section 3 of the advisory did not apply
- The peer dependency warning for @playwright/test@^1.51.1 (but installed 1.49.0) is pre-existing and not related to this security fix

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@vercel
Copy link
Author

vercel bot commented Dec 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
speed-insights-astro Ready Ready Preview Comment Dec 8, 2025 4:09pm
speed-insights-nextjs Ready Ready Preview Comment Dec 8, 2025 4:09pm
speed-insights-nuxt Ready Ready Preview Comment Dec 8, 2025 4:09pm
speed-insights-remix Ready Ready Preview Comment Dec 8, 2025 4:09pm
speed-insights-sveltekit Ready Ready Preview Comment Dec 8, 2025 4:09pm
speed-insights-vue Ready Ready Preview Comment Dec 8, 2025 4:09pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant