Skip to content

Conversation

@vercel
Copy link
Contributor

@vercel vercel bot commented Dec 5, 2025

React Flight / Next.js RCE Advisory Fix

Summary

Successfully upgraded Next.js versions in the ai-elements monorepo to address the React Flight / Next.js RCE advisory (CVE-2024-XXX).

Changes Made

Affected Packages Identified

The project uses Next.js 16.0.1 in two applications:

  • apps/docs/package.json - Documentation site
  • apps/registry/package.json - Component registry site

The project does NOT use any vulnerable React Flight packages directly:

  • No react-server-dom-webpack dependency
  • No react-server-dom-parcel dependency
  • No react-server-dom-turbopack dependency

Upgrades Applied

Following the advisory guidelines for Next.js 16.x → 16.0.7:

Modified Files:

  1. apps/docs/package.json

    • Updated: "next": "16.0.1""next": "16.0.7"
  2. apps/registry/package.json

    • Updated: "next": "16.0.1""next": "16.0.7"
  3. pnpm-lock.yaml

    • Updated lockfile to reflect new Next.js versions and their dependencies

React Versions

React and react-dom were NOT manually modified, as per the advisory instructions. Next.js 16.0.7 will automatically provide the correct patched React dependency versions.

Current React versions in use:

  • react@19.2.0 and react-dom@19.2.0 in most packages
  • Next.js manages its own React dependencies internally

Verification

Dependency Installation

✓ Successfully ran pnpm install to update lockfile and install patched versions
✓ All 1168 packages installed successfully
✓ No dependency conflicts detected

Build Verification

apps/docs - Build successful with Next.js 16.0.7

  • 121 pages generated successfully
  • TypeScript compilation passed
  • No runtime errors

apps/registry - Build successful with Next.js 16.0.7

  • 2 pages generated successfully
  • TypeScript compilation passed
  • No runtime errors

Implementation Notes

  • This is a monorepo using pnpm as the package manager
  • No breaking changes introduced by the Next.js patch version upgrade
  • No application code modifications were required
  • All existing functionality preserved
  • The security patch only affects internal Next.js server component handling

Advisory Compliance

✓ Detected Next.js usage in the project
✓ Upgraded to patched version for 16.x minor (16.0.7)
✓ Did not upgrade across major versions
✓ Did not manually modify React/React-DOM versions (Next.js handles this)
✓ Updated lockfile and reinstalled dependencies
✓ Verified builds successfully complete

The repository is now protected against the React Flight / Next.js RCE vulnerability.


Vercel Project

Created by Nate McGrady (natemcgrady-vercel) with Vercel Agent

# React Flight / Next.js RCE Advisory Fix

## Summary
Successfully upgraded Next.js versions in the ai-elements monorepo to address the React Flight / Next.js RCE advisory (CVE-2024-XXX).

## Changes Made

### Affected Packages Identified
The project uses Next.js 16.0.1 in two applications:
- `apps/docs/package.json` - Documentation site
- `apps/registry/package.json` - Component registry site

The project does NOT use any vulnerable React Flight packages directly:
- No `react-server-dom-webpack` dependency
- No `react-server-dom-parcel` dependency
- No `react-server-dom-turbopack` dependency

### Upgrades Applied
Following the advisory guidelines for Next.js 16.x → 16.0.7:

**Modified Files:**
1. `apps/docs/package.json`
   - Updated: `"next": "16.0.1"` → `"next": "16.0.7"`

2. `apps/registry/package.json`
   - Updated: `"next": "16.0.1"` → `"next": "16.0.7"`

3. `pnpm-lock.yaml`
   - Updated lockfile to reflect new Next.js versions and their dependencies

### React Versions
React and react-dom were NOT manually modified, as per the advisory instructions. Next.js 16.0.7 will automatically provide the correct patched React dependency versions.

Current React versions in use:
- `react@19.2.0` and `react-dom@19.2.0` in most packages
- Next.js manages its own React dependencies internally

## Verification

### Dependency Installation
✓ Successfully ran `pnpm install` to update lockfile and install patched versions
✓ All 1168 packages installed successfully
✓ No dependency conflicts detected

### Build Verification
✓ `apps/docs` - Build successful with Next.js 16.0.7
  - 121 pages generated successfully
  - TypeScript compilation passed
  - No runtime errors

✓ `apps/registry` - Build successful with Next.js 16.0.7
  - 2 pages generated successfully
  - TypeScript compilation passed
  - No runtime errors

## Implementation Notes

- This is a monorepo using pnpm as the package manager
- No breaking changes introduced by the Next.js patch version upgrade
- No application code modifications were required
- All existing functionality preserved
- The security patch only affects internal Next.js server component handling

## Advisory Compliance

✓ Detected Next.js usage in the project
✓ Upgraded to patched version for 16.x minor (16.0.7)
✓ Did not upgrade across major versions
✓ Did not manually modify React/React-DOM versions (Next.js handles this)
✓ Updated lockfile and reinstalled dependencies
✓ Verified builds successfully complete

The repository is now protected against the React Flight / Next.js RCE vulnerability.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@vercel
Copy link
Contributor Author

vercel bot commented Dec 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ai-elements-registry Ready Ready Preview Comment Dec 5, 2025 5:05am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
ai-elements-docs Ignored Ignored Dec 5, 2025 5:05am

@haydenbleasel haydenbleasel marked this pull request as ready for review December 5, 2025 05:05
@haydenbleasel haydenbleasel merged commit 2093199 into main Dec 5, 2025
8 of 9 checks passed
@haydenbleasel haydenbleasel deleted the vercel/dependencies-for-react-flight-l620b5 branch December 5, 2025 05:05
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