Skip to content

Conversation

@vercel
Copy link
Contributor

@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 v0-workflow-registry. 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 project to address the React Flight / Next.js RCE advisory as requested.

## Project Status
✓ AFFECTED: Project uses Next.js 16.0.1
✗ NOT AFFECTED BY REACT FLIGHT: Project does not use react-server-dom-webpack, react-server-dom-parcel, or react-server-dom-turbopack

## Changes Implemented

### Modified Files:
1. **package.json**
   - Updated `next` from `16.0.1` to `16.0.7` (patched version for 16.x)
   - No changes to React or React DOM versions (Next.js handles these automatically)

2. **pnpm-lock.yaml**
   - Automatically updated during `pnpm install` to reflect next@16.0.7
   - Verified that lockfile now resolves to next@16.0.7

## Implementation Details

According to the advisory:
- Next.js 16.x versions should be patched to 16.0.7
- The project did not use any React Flight packages (react-server-dom-*), so only Next.js required patching
- React (19.2.0) and React DOM (19.2.0) remain unchanged as they are not directly vulnerable and Next.js will provide the correct versions automatically

## Verification

✓ **Build Verification**: `npm run build` completed successfully
  - Next.js 16.0.7 (Turbopack) built the project without errors
  - All 52 static pages generated successfully
  - No dependency-related errors

✓ **Lockfile Verification**: Confirmed that pnpm-lock.yaml contains next@16.0.7
  - Dependencies installed cleanly with pnpm v9.15.9
  - No unresolved dependency conflicts

✓ **No Regressions**: Build output shows all routes processed correctly

## Notes
- The project uses pnpm as its package manager (pnpm@9.15.9+sha512...)
- ESLint configuration warning in next.config.mjs is pre-existing and unrelated to this security update
- No test suite present in the project (no test/spec scripts configured)

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@vercel
Copy link
Contributor 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)
v0-workflow-registry Ready Ready Preview Comment Dec 8, 2025 3:32pm

@blurrah blurrah marked this pull request as ready for review December 9, 2025 10:59
@blurrah blurrah merged commit a1dd673 into main Dec 9, 2025
2 checks passed
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.

2 participants