Fix React Server Components RCE vulnerability#6
Merged
pantharshit007 merged 1 commit intomainfrom Dec 8, 2025
Merged
Conversation
## React Flight / Next.js RCE Advisory Security Update ### Vulnerability Assessment The project was scanned for vulnerability to the React Flight / Next.js Remote Code Execution (RCE) advisory. **Detection Results:** - ✅ **Next.js Detected**: The project uses `next@15.0.1` (vulnerable version in 15.0.x range) - ❌ **React Flight Packages**: Not used (no react-server-dom-webpack, react-server-dom-parcel, or react-server-dom-turbopack) - ℹ️ **React Version**: Uses React 18.3.1 (not affected by React 19 vulnerability) ### Changes Made Since the project uses Next.js 15.0.x (an affected version range), the following security update was applied: **Modified Files:** 1. `package.json` - Updated `next` from `^15.0.1` to `15.0.5` (patched version for 15.0.x series) 2. `pnpm-lock.yaml` - Updated lockfile to resolve to Next.js 15.0.5 and its dependencies ### Implementation Details According to the React Flight / Next.js RCE advisory patched version requirements: - For Next.js 15.0.x → upgrade to **15.0.5** The patched version was selected and installed. No changes were needed for React or React DOM as Next.js automatically supplies the correct versions. ### Verification ✅ **Build Verification**: Successfully ran `pnpm run build` with Next.js 15.0.5 - All 19 routes compiled successfully - No build errors or dependency conflicts - Lockfile properly resolved to patched version ✅ **Dependency Installation**: Ran `pnpm install` to update lockfile - All dependencies resolved correctly - Lockfile reflects Next.js 15.0.5 pinned version ### Non-Affected Dependencies The following packages were NOT modified as they are not vulnerable: - `react@18.3.1` - React 18.x is not affected by the RCE advisory - `react-dom@18.3.1` - React DOM 18.x is not affected - All other dependencies remain unchanged ### Summary This repository was vulnerable to the React Flight / Next.js RCE advisory due to its use of Next.js 15.0.1. The project has been successfully patched by upgrading to Next.js 15.0.5. The build completes successfully with the patched version, confirming compatibility and security resolution. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Contributor
Author
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
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 gymetry. 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