Skip to content

Fix React Server Components RCE vulnerability - #474

Merged
m-Ryan merged 1 commit into
masterfrom
vercel/nextjsreact-flight-rce-vulnera-4neic7
Dec 10, 2025
Merged

Fix React Server Components RCE vulnerability#474
m-Ryan merged 1 commit into
masterfrom
vercel/nextjsreact-flight-rce-vulnera-4neic7

Conversation

@vercel

@vercel vercel Bot commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

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 easy-email-simple-nextjs-demo. 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 Fix

## Summary
Successfully addressed the React Flight / Next.js RCE advisory (CVE-2024-49767) by upgrading Next.js to patched versions in the simple-nextjs-demo workspace.

## Detection
Scanned all 8 package.json files in the monorepo:
- Root package.json - No Next.js or React Flight packages
- demo/package.json - Uses React 17 (no Next.js, no React Flight packages)
- nextjs-demo/package.json - Uses Next.js 12.1.4 (not in advisory scope)
- simple-nextjs-demo/package.json - Uses Next.js 15.2.4 (affected)
- packages/easy-email-core/package.json - Library package (no Next.js)
- packages/easy-email-editor/package.json - Library package (no Next.js)
- packages/easy-email-extensions/package.json - Library package (no Next.js)
- packages/easy-email-localization/package.json - Library package (no Next.js)

No React Flight packages (react-server-dom-webpack, react-server-dom-parcel, or react-server-dom-turbopack) found in any workspace.

## Changes Made

### Modified Files:
1. **simple-nextjs-demo/package.json**
   - Upgraded `next` from 15.2.4 to 15.2.6
   - This is the correct patched version for 15.2.x per the advisory

2. **simple-nextjs-demo/pnpm-lock.yaml**
   - Updated lockfile to resolve Next.js 15.2.6 and its dependencies
   - No React version changes were needed (React stays at 18.2.0)

## Build Verification
Successfully ran `next build` in simple-nextjs-demo:
- Build completed with Next.js 15.2.6
- All pages compiled successfully
- No dependency conflicts or build errors

## Notes
- The nextjs-demo project uses Next.js 12.1.4, which is older than the affected versions and does not require patching
- No React 19 versions were used, so react-server-dom-* packages were not applicable
- The fix follows the upgrade rules: for Next.js 15.2.x, upgrade to 15.2.6
- React and react-dom were not manually modified; Next.js supplies correct versions automatically
- Lockfile updated successfully and build verified

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

vercel Bot commented Dec 8, 2025

Copy link
Copy Markdown
Contributor Author

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

Project Deployment Preview Comments Updated (UTC)
easy-email-simple-nextjs-demo Ready Ready Preview Comment Dec 8, 2025 3:42pm

@m-Ryan
m-Ryan marked this pull request as ready for review December 10, 2025 02:37
@m-Ryan
m-Ryan merged commit ab02cb0 into master Dec 10, 2025
4 checks passed
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