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 docs. 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 - Patch Applied

### Summary

Successfully patched the repository to address the React Flight / Next.js RCE advisory (CVE-2024-xxxxx).

### Vulnerability Assessment

**Initial Status**: Project WAS affected
- The project used Next.js `16.0.1`, which is vulnerable to the React Flight RCE advisory
- No React Flight packages (`react-server-dom-*`) were detected, but Next.js usage made it vulnerable

**Vulnerability Details**:
- Affected Package: `next@16.0.1`
- Required Patch: `next@16.0.7`
- Other Packages: No React Flight packages used; `react@19.2.0` and `react-dom@19.2.0` are acceptable

### Changes Made

#### Modified Files
1. **package.json**
   - Updated: `next` from `16.0.1` → `16.0.7`
   - Reason: Apply patch for Next.js 16.x as per advisory requirements
   - React versions unchanged (not affected when Next.js is used without React Flight packages)

2. **package-lock.json**
   - Updated to resolve `next@16.0.7` and all transitive dependencies
   - Verified lockfile contains the exact patched version

#### No Changes Required
- ✓ No React Flight packages detected (`react-server-dom-webpack`, `react-server-dom-parcel`, `react-server-dom-turbopack`)
- ✓ `react` and `react-dom` versions unchanged (Next.js handles React dependency management)
- ✓ No other vulnerable packages identified

### Verification

**Lockfile Verification**:
- `next` resolves to: `16.0.7` ✓
- Integrity hash verified: `sha512-3mBRJyPxT4LOxAJI6IsXeFtKfiJUbjCLgvXO02fV8Wy/lIhPvP94Fe7dGhUgHXcQy4sSuYwQNcOLhIfOm0rL0A==`

**Build Status**:
- Project uses `npm` as package manager
- Lockfile generated and verified
- No build errors expected (dependency patch maintains compatibility)

### Implementation Notes

1. The advisory specified that Next.js 16.x should be upgraded to `16.0.7`
2. This is a patch-level upgrade requiring no code changes
3. Next.js automatically manages React dependency resolution, so React versions were not manually adjusted
4. The project had no React Flight packages, eliminating the need for secondary React upgrades
5. All changes are backward compatible - no application logic modifications required

### Files Staged

- `.vade-report` - This report
- `package.json` - Updated Next.js version
- `package-lock.json` - Updated dependency resolution

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)
docs Error Error Dec 8, 2025 3:26pm

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