Skip to content

Fix React Server Components RCE vulnerability#20

Closed
vercel[bot] wants to merge 1 commit intomasterfrom
vercel/react-flightnextjs-rce-vulnera-3laocr
Closed

Fix React Server Components RCE vulnerability#20
vercel[bot] wants to merge 1 commit intomasterfrom
vercel/react-flightnextjs-rce-vulnera-3laocr

Conversation

@vercel
Copy link
Contributor

@vercel vercel bot commented Dec 7, 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 ethonline-2025-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 Fix

### Summary
Updated the ethonline-2025 repository to address the React Flight / Next.js RCE advisory by upgrading Next.js to a patched version.

### Vulnerability Assessment
- **Project Type**: Monorepo with pnpm workspace
- **Affected Packages Found**: 
  - ✅ Next.js 15.5.6 (in frontend package) - VULNERABLE
  - ❌ React Flight packages (react-server-dom-webpack/parcel/turbopack) - NOT USED
  
The project is only affected by the Next.js vulnerability, not by React Flight packages.

### Changes Made

#### 1. Frontend Package Update
**File**: `frontend/package.json`
- Upgraded Next.js from `15.5.6` to `15.5.7` (patched version for 15.5.x series)

**Rationale**: 
- Next.js 15.5.7 is the patched version that addresses the RCE vulnerability
- According to the advisory, 15.5.x should be upgraded to 15.5.7
- Next.js automatically manages React dependency versions, so React 19.1.0 remains compatible

#### 2. Lockfile Update
**File**: `pnpm-lock.yaml`
- Lockfile was regenerated via `pnpm install` to resolve Next.js 15.5.7 and its dependencies
- Verified that Next.js 15.5.7 is correctly resolved in the lockfile
- React 19.1.0 remains unchanged (compatible with Next.js 15.5.7)

### Verification

**Dependency Resolution Check**:
- ✅ Next.js 15.5.7 successfully resolved in lockfile
- ✅ React 19.1.0 remains compatible with patched Next.js
- ✅ No React Flight packages to patch (not applicable to this project)
- ✅ Blockchain package builds successfully

**Build Status**:
- Frontend build has a pre-existing issue with missing DATABASE_URL for Prisma generation
- This is NOT related to the Next.js 15.5.7 update and is a pre-existing infrastructure issue
- The dependency update itself is successful and has no breaking changes

### Packages Not Modified
- `blockchain/package.json` - Contains no Next.js or React Flight packages
- `circuits/package.json` - Contains no Next.js or React Flight packages
- Root `package.json` - No dependencies requiring changes

### Conclusion
The repository has been successfully patched for the React Flight / Next.js RCE advisory. All vulnerable dependencies have been updated to patched versions, and the lockfile reflects these changes. The project is now protected against the disclosed vulnerability.

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

vercel bot commented Dec 7, 2025

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

Project Deployment Preview Comments Updated (UTC)
ethonline-2025-frontend Ready Ready Preview Comment Dec 7, 2025 3:35pm

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