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 enterprise-dashboard. 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 Update

### Summary
Successfully updated the enterprise-dashboard project to address the React Flight / Next.js RCE advisory (CVE-2024-39341 and related vulnerabilities).

### Vulnerability Detection & Analysis

1. **Initial Assessment**
   - Single package.json configuration (not a monorepo)
   - Project uses Next.js (vulnerable if outdated)
   - No React Flight / React Server Components packages found

2. **Vulnerability Status**
   - ⚠️ **Next.js was vulnerable**: Version 16.0.3 (affected)
   - ✅ **No React Flight packages**: Not using react-server-dom-*
   - Impact: Only Next.js needed updating

### Changes Implemented

#### package.json Updates
- **next**: `16.0.3` → `16.0.7` (patched version for 16.x)
- **eslint-config-next**: `16.0.3` → `16.0.7` (must match Next.js version)
- **react & react-dom**: No changes needed (automatically managed by Next.js)

#### Files Modified
1. `package.json` - Updated Next.js and eslint-config-next to patched versions
2. `package-lock.json` - Lockfile updated with patched dependencies

### Verification Results
- ✅ **Build succeeded**: `npm run build` completed without errors
- ✅ **Next.js version**: Confirmed 16.0.7 installed
- ✅ **Dependencies resolved**: All patched versions properly installed
- ✅ **Linting**: No new errors introduced (36 pre-existing warnings from unused variables)
- ✅ **TypeScript**: Compilation successful

### Security Impact
The project is now protected against the React Flight / Next.js RCE vulnerability:
- Next.js 16.0.7 includes all necessary security fixes
- React versions (19.2.0) are correctly managed by the patched Next.js version
- No vulnerable dependencies remain

### Notes
- The upgrade from 16.0.3 to 16.0.7 is a patch-level update with no breaking changes
- React and react-dom versions are determined by Next.js dependencies and do not require manual updates
- The project did not use any React Flight packages, so no additional changes were needed for react-server-dom-*

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)
enterprise-dashboard Ready Ready Preview Comment Dec 8, 2025 11:48am

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