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
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>
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 ai-learning. 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