Skip to content

Conversation

@vercel
Copy link
Contributor

@vercel vercel bot commented Dec 5, 2025

React Flight / Next.js RCE Advisory Security Update

Successfully updated the ai-elements monorepo to address the React Flight / Next.js RCE advisory (CVE-2025-XXXXX).

Summary of Changes

The project was found to be affected by the vulnerability. Two Next.js applications were using vulnerable versions and have been patched.

Affected Packages Detected

  • apps/docs: Next.js 16.0.1 → 16.0.7
  • apps/registry: Next.js 16.0.1 → 16.0.7

Both applications were running Next.js 16.0.1, which is vulnerable to the RCE advisory. According to the security guidance, Next.js 16.x projects must be upgraded to 16.0.7.

Not Affected

The project does NOT use any of the following vulnerable React Flight packages:

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

Other workspace packages (elements, examples, shadcn-ui, cli, typescript-config) do not use Next.js and were not affected.

Files Modified

  1. apps/docs/package.json - Updated Next.js from 16.0.1 to 16.0.7
  2. apps/registry/package.json - Updated Next.js from 16.0.1 to 16.0.7
  3. pnpm-lock.yaml - Updated lockfile to reflect new Next.js versions
  4. apps/docs/next-env.d.ts - Auto-generated type definitions updated by Next.js 16.0.7

Implementation Details

  • Used pnpm package manager to install dependencies and update lockfile
  • Did NOT manually update React or React-DOM versions (Next.js manages these automatically)
  • Followed the advisory guideline: "For Next.js 16.x → set to 16.0.7"
  • Did NOT upgrade across major versions (stayed within Next.js 16.x)

Verification

Both Next.js applications were successfully built with the patched version:

  • apps/registry - Build passed (Next.js 16.0.7 with Turbopack)
  • apps/docs - Build passed (Next.js 16.0.7 with Turbopack)

All TypeScript compilation and static page generation completed without errors.

Security Impact

This update patches the React Flight / Next.js RCE vulnerability in both Next.js applications within the monorepo. The patched version 16.0.7 includes critical security fixes that prevent remote code execution attacks.


Vercel Project

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

## React Flight / Next.js RCE Advisory Security Update

Successfully updated the ai-elements monorepo to address the React Flight / Next.js RCE advisory (CVE-2025-XXXXX).

### Summary of Changes

The project was found to be affected by the vulnerability. Two Next.js applications were using vulnerable versions and have been patched.

### Affected Packages Detected

- **apps/docs**: Next.js 16.0.1 → 16.0.7
- **apps/registry**: Next.js 16.0.1 → 16.0.7

Both applications were running Next.js 16.0.1, which is vulnerable to the RCE advisory. According to the security guidance, Next.js 16.x projects must be upgraded to 16.0.7.

### Not Affected

The project does NOT use any of the following vulnerable React Flight packages:
- react-server-dom-webpack
- react-server-dom-parcel
- react-server-dom-turbopack

Other workspace packages (elements, examples, shadcn-ui, cli, typescript-config) do not use Next.js and were not affected.

### Files Modified

1. **apps/docs/package.json** - Updated Next.js from 16.0.1 to 16.0.7
2. **apps/registry/package.json** - Updated Next.js from 16.0.1 to 16.0.7
3. **pnpm-lock.yaml** - Updated lockfile to reflect new Next.js versions
4. **apps/docs/next-env.d.ts** - Auto-generated type definitions updated by Next.js 16.0.7

### Implementation Details

- Used pnpm package manager to install dependencies and update lockfile
- Did NOT manually update React or React-DOM versions (Next.js manages these automatically)
- Followed the advisory guideline: "For Next.js 16.x → set to 16.0.7"
- Did NOT upgrade across major versions (stayed within Next.js 16.x)

### Verification

Both Next.js applications were successfully built with the patched version:
- ✅ `apps/registry` - Build passed (Next.js 16.0.7 with Turbopack)
- ✅ `apps/docs` - Build passed (Next.js 16.0.7 with Turbopack)

All TypeScript compilation and static page generation completed without errors.

### Security Impact

This update patches the React Flight / Next.js RCE vulnerability in both Next.js applications within the monorepo. The patched version 16.0.7 includes critical security fixes that prevent remote code execution attacks.

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:04am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
ai-elements-docs Ignored Ignored Dec 5, 2025 5:04am

@haydenbleasel haydenbleasel marked this pull request as ready for review December 5, 2025 05:03
@haydenbleasel haydenbleasel merged commit f524f7e into main Dec 5, 2025
9 of 10 checks passed
@haydenbleasel haydenbleasel deleted the vercel/repo-for-react-flight-rce-advi-2ol16e branch December 5, 2025 05:04
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