Update repo for React Flight RCE advisory #277
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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:
Other workspace packages (elements, examples, shadcn-ui, cli, typescript-config) do not use Next.js and were not affected.
Files Modified
Implementation Details
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