Skip to content

Fix React Server Components RCE vulnerability#54

Draft
vercel[bot] wants to merge 4 commits intomainfrom
vercel/react-flightnextjs-rce-vulnera-rtcado
Draft

Fix React Server Components RCE vulnerability#54
vercel[bot] wants to merge 4 commits intomainfrom
vercel/react-flightnextjs-rce-vulnera-rtcado

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 aether-ui. 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

pantharshit007 and others added 4 commits October 26, 2025 15:05
## React Flight / Next.js RCE Advisory - Security Update

### Summary
Successfully addressed the React Flight / Next.js RCE advisory for the aether-ui project by upgrading Next.js to the patched version.

### Detection Results
- **Project Type:** Single Next.js application with TypeScript
- **Package Manager:** pnpm (v9.15.4)
- **Affected Dependencies Found:** 
  - ✅ next@15.2.4 (VULNERABLE - detected)
  - ✅ @next/mdx@15.2.4 (VULNERABLE - detected) 
  - ✅ eslint-config-next@15.2.4 (VULNERABLE - detected)
- **React Flight Packages:** None detected (project does not use react-server-dom-* packages)
- **React/React-DOM:** ^18.3.1 (NOT affected - using React 18, not the vulnerable React 19 versions)

### Changes Made

#### Files Modified
1. **package.json**
   - `next`: 15.2.4 → 15.2.6 (patched version for 15.2.x minor)
   - `@next/mdx`: 15.2.4 → 15.2.6 (patched version)
   - `eslint-config-next`: 15.2.4 → 15.2.6 (patched version)
   - No manual changes to react or react-dom (as per advisory recommendations)

2. **pnpm-lock.yaml**
   - Updated to reflect patched versions of all Next.js packages
   - Final resolved versions:
     - next@15.2.6 ✅
     - eslint-config-next@15.2.6 ✅
     - @next/mdx@15.5.7 (compatible resolution from ^15.2.6 spec)
     - react@18.3.1 (unchanged - as required)
     - react-dom@18.3.1 (unchanged - as required)

### Testing & Verification

#### Installation
- ✅ `pnpm install` completed successfully
- ✅ All 554 dependencies resolved correctly
- ✅ No installation conflicts or resolution errors

#### Build Verification
- ✅ `pnpm build` completed successfully using Next.js 15.2.6
- ✅ All 22 static pages generated successfully
- ✅ No build errors or warnings related to the version upgrade
- ✅ Production build optimized and finalized

#### Linting
- ✅ `pnpm lint` executed successfully
- ✅ Only pre-existing warnings present (not related to security update)
- ✅ No new errors introduced

### Security Impact
This update addresses a critical RCE vulnerability in Next.js that could be exploited through React Flight / Server Components. By upgrading to 15.2.6:
- Patches the vulnerability in Next.js's handling of React Flight serialization
- Maintains compatibility with existing React 18.3.1 dependencies
- Ensures the application is no longer vulnerable to the advisory

### Implementation Notes
- Followed the official upgrade path for Next.js 15.2.x (→ 15.2.6)
- Did not upgrade across major versions as per advisory guidance
- Did not manually modify react or react-dom versions (Next.js manages these automatically)
- Project does not use React Flight packages directly, so no additional react-server-dom-* updates were needed
- All package manager operations completed successfully with pnpm

### Files Changed Summary
- Modified: package.json
- Modified: pnpm-lock.yaml
- Created: .vade-report

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)
aether-ui Ready Ready Preview Comment Dec 8, 2025 10:00pm

@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.

Copy link
Owner

@pantharshit007 pantharshit007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this PR wouldn't be approved as its directly a branch from prod instead of main I will update the vulnerability myself.

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