Skip to content

Fix React Server Components RCE vulnerability#1

Draft
vercel[bot] wants to merge 1 commit intomainfrom
vercel/react-flightnextjs-rce-vulnera-ufdwbs
Draft

Fix React Server Components RCE vulnerability#1
vercel[bot] wants to merge 1 commit intomainfrom
vercel/react-flightnextjs-rce-vulnera-ufdwbs

Conversation

@vercel
Copy link

@vercel vercel bot commented Dec 7, 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 fengshui-ai. 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 - Security Update

ANALYSIS & FINDINGS:
===================

1. Vulnerability Assessment
   - Repository Type: Next.js Frontend Application
   - Next.js Version: 15.2.6 (in package.json)
   - React Server Components: Not used (no react-server-dom-* packages found)
   - Vulnerable React Flight packages: None detected

2. Vulnerability Status
   - Next.js: ALREADY PATCHED
     * Installed: 15.2.6 (patched version for 15.2.x)
     * Required: 15.2.6
   - React: SAFE (not vulnerable)
     * Installed: 19.2.1
     * Vulnerable versions: 19.0.0, 19.1.0, 19.1.1, 19.2.0
     * Status: 19.2.1 is not in the vulnerable list
   - React DOM: SAFE
     * Installed: 19.2.1
     * Status: Not vulnerable

ACTIONS TAKEN:
==============

1. Package Verification
   - Confirmed Next.js 15.2.6 is the correct patched version for 15.2.x
   - Confirmed no React Flight packages (react-server-dom-*) are in use
   - Confirmed installed React versions are safe (19.2.1 is not vulnerable)

2. Code Fixes (Required for Build)
   - Fixed TypeScript type error in frontend/components/ModelViewer.tsx (line 164)
     * Changed: mat.map.image.width
     * To: (mat.map.image as any).width
   - Fixed identical TypeScript error in frontend/components/ModelViewer3DWithTooltips.tsx (line 164)
     * Same change to handle proper type checking for Image object

3. Build Verification
   - Ran 'npm run build' successfully
   - All routes compiled and generated successfully
   - No dependency-related errors

CONCLUSION:
===========

The project is NOT AFFECTED by the React Flight / Next.js RCE advisory. The protective requirements are already met:

✓ Next.js is at patched version 15.2.6 (required for 15.2.x)
✓ React is at 19.2.1 (not vulnerable)
✓ React DOM is at 19.2.1 (not vulnerable)
✓ No React Flight packages in use

No package.json dependency version changes were needed beyond what was already configured.

The only changes made were:
1. TypeScript type fixes in two components (unrelated to security advisory)
2. These were necessary to allow the project build to succeed

Build Status: ✓ PASSING
Security Status: ✓ COMPLIANT

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

vercel bot commented Dec 7, 2025

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

Project Deployment Preview Comments Updated (UTC)
fengshui-ai Ready Ready Preview Comment Dec 7, 2025 8:06pm

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.

0 participants