Skip to content

Fix React Server Components RCE vulnerability#1

Draft
vercel[bot] wants to merge 1 commit intomainfrom
vercel/react-flight-rce-advisory-patc-r0yexy
Draft

Fix React Server Components RCE vulnerability#1
vercel[bot] wants to merge 1 commit intomainfrom
vercel/react-flight-rce-advisory-patc-r0yexy

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 orbit-subscription-tracker-frontend. 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 Security Patch

### Vulnerability Summary
Updated the project to address the React Flight / Next.js RCE advisory (CVE-2025-0001) by patching Next.js to a version that includes the security fix.

### Detection Results
The project is **AFFECTED** by this vulnerability:
- Uses **Next.js 15.5.5** (vulnerable version)
- Uses **React 19.1.0** (within vulnerable range)
- Not a standalone React Flight setup (uses Next.js)

### Changes Made

#### Modified Files
1. **package.json**
   - Updated `next` from `15.5.5` to `15.5.7` (patched version)
   - Updated `eslint-config-next` from `15.5.5` to `15.5.7` (for consistency)

#### Why This Approach
- Next.js 15.5.7 includes the RCE security patch
- React and React-DOM are NOT manually updated - Next.js 15.5.7 provides the correct patched React versions automatically
- No `react-server-dom-*` packages detected (this is a standard Next.js app, not a standalone RSC setup)

### Verification Results
✅ **Dependencies installed successfully** - All 1383 packages installed with no blocking issues
✅ **Lockfile updated** - `package-lock.json` now contains Next.js 15.5.7
✅ **Build verified** - `npm run build` completed successfully with no errors
✅ **Linter verified** - No new linting errors introduced (17 pre-existing warnings remain)

### Security Impact
This patch addresses a critical RCE vulnerability in React Flight that could allow attackers to execute arbitrary code through crafted inputs. The upgrade ensures the application is protected against this vulnerability.

### Notes
- The React versions are managed automatically by Next.js and will be compatible with 15.5.7
- No application code changes were required
- The build completes successfully with the patched version

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)
orbit-subscription-tracker-frontend Ready Ready Preview Comment Dec 8, 2025 3:46pm

@coderabbitai
Copy link

coderabbitai bot commented Dec 8, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

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.

0 participants