Fix React Server Components RCE vulnerability - #474
Merged
Conversation
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>
Contributor
Author
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
m-Ryan
marked this pull request as ready for review
December 10, 2025 02:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
GitHub Security Advisory: GHSA-9qr9-h5gf-34mp
React Advisory: CVE-2025-55182
Next.js Advisory: CVE-2025-66478
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