Skip to content

Fix React Server Components RCE vulnerability#1

Draft
vercel[bot] wants to merge 1 commit intomainfrom
vercel/dependencies-for-react-flight-b6aviz
Draft

Fix React Server Components RCE vulnerability#1
vercel[bot] wants to merge 1 commit intomainfrom
vercel/dependencies-for-react-flight-b6aviz

Conversation

@vercel
Copy link

@vercel vercel bot commented Dec 8, 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 ai-learning. 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

SUMMARY:
Successfully updated the ai-learning repository to address the React Flight / Next.js RCE advisory (CVE). The project was identified as affected and has been patched.

VULNERABILITY DETECTION:
- Scanned entire repository for package.json files
- Found 2 package.json files:
  1. ./agentic_frameworks/sql_agent/package.json - ✅ AFFECTED
     - Contains: next@15.5.6 (vulnerable)
     - Contains: react@19.1.0 and react-dom@19.1.0 (affected versions)
  2. ./mcp/mcp_gateway/package.json - ❌ NOT AFFECTED
     - No Next.js dependency
     - No React Flight / RSC packages

CHANGES MADE:
Updated ./agentic_frameworks/sql_agent/package.json:
- Upgraded next: 15.5.6 → 15.5.7 (patched version)
- Upgraded eslint-config-next: 15.5.6 → 15.5.7 (corresponding dev dependency)
- React and React-DOM unchanged: Kept at 19.1.0 as per guidelines
  (Next.js 15.5.7 manages correct patched React versions automatically)

FILES MODIFIED:
1. agentic_frameworks/sql_agent/package.json - Updated Next.js and related dependencies
2. agentic_frameworks/sql_agent/pnpm-lock.yaml - Updated lockfile with patched versions

IMPLEMENTATION DETAILS:
- Used pnpm install to resolve dependencies and update lockfile
- Verified lockfile contains next@15.5.7 (integrity: sha512-+t2/0jIJ48kUpGKkdlhgkv+zPTEOoXyr60qXe68eB/pl3CMJaLeIGjzp5D6Oqt25hCBiBTt8wEeeAzfJvUKnPQ==)
- No React Flight packages (react-server-dom-*) were used in the project
- React and React-DOM versions were not manually updated per Next.js guidelines

VERIFICATION RESULTS:
✅ Build successful: `pnpm run build` completed without errors using Next.js 15.5.7
✅ Linting passed: `pnpm run lint` ran without issues
✅ No breaking changes: All existing code patterns preserved
✅ Lockfile resolved correctly: All patched versions are present

NOTES:
- The mcp/mcp_gateway project was not modified as it doesn't use Next.js or React Flight packages
- The security vulnerability has been successfully mitigated for the affected project
- The upgrade maintains the same major version (15.x) and includes only security patches

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
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