Fix React Server Components RCE vulnerability#1
Draft
vercel[bot] wants to merge 1 commit intomainfrom
Draft
Conversation
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>
Author
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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:
GitHub Security Advisory: GHSA-9qr9-h5gf-34mp
React Advisory: CVE-2025-55182
Next.js Advisory: CVE-2025-66478
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