Skip to content

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 algo-horizon. 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 | [email protected]

## React Flight / Next.js RCE Advisory Update

### Summary
Successfully updated the algo-horizon repository to address the React Flight / Next.js RCE security advisory.

### Vulnerability Assessment
**Affected Packages Detected:**
- ✅ Next.js 16.0.3 (VULNERABLE - required patching)
- ❌ react-server-dom-webpack (not present)
- ❌ react-server-dom-parcel (not present)
- ❌ react-server-dom-turbopack (not present)

**Not Affected:**
- React and react-dom are not vulnerable in this advisory
- No React Flight / RSC packages in use

### Changes Made

#### Files Modified
1. **package.json**
   - Upgraded `next` from `^16.0.3` to `^16.0.7` (patched version)
   - Upgraded `eslint-config-next` from `^16.0.3` to `^16.0.7` (for consistency)

2. **package-lock.json**
   - Updated automatically by running `npm install` to lock patched versions

### Implementation Details

**Next.js Version Upgrade:**
- Detected Next.js 16.x usage
- Applied upgrade rule: 16.x → 16.0.7 (latest patched version for 16.x)
- No React or react-dom manual updates required (Next.js handles this)

### Verification Steps Completed

✅ **Dependency Resolution**
- npm install completed successfully
- Lockfile updated with patched Next.js 16.0.7
- Verified: `npm list next` confirms 16.0.7 is installed

✅ **Build Verification**
- `npm run build` completed successfully with no errors
- All 28 pages compiled and generated correctly
- TypeScript compilation passed

✅ **No Regressions**
- No breaking changes introduced
- Existing code structure preserved
- Build succeeded without any dependency-related errors

### Patched Versions Summary
- **next**: 16.0.3 → 16.0.7 ✅
- **eslint-config-next**: 16.0.3 → 16.0.7 ✅
- **react**: ^19 (no change - not required by patch)
- **react-dom**: ^19 (no change - not required by patch)

### Security Impact
This update resolves the React Flight / Next.js Remote Code Execution (RCE) vulnerability that affected certain versions of Next.js 16.x. The patched version 16.0.7 includes critical security fixes for server-side rendering and React Server Components handling.

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)
algo-horizon Ready Ready Preview Comment Dec 8, 2025 3:25pm

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