Skip to content

Fix React Server Components RCE vulnerability#1

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

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

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 melony.dev. 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 Mitigation

AFFECTED: This project uses Next.js 15.3.x and is affected by the React Flight / Next.js RCE advisory.

CHANGES MADE:

1. Updated package.json:
   - Next.js: 15.3.0 → 15.3.6 (patched version)
   - eslint-config-next: 15.3.0 → 15.3.6 (matching version)

2. Updated pnpm-lock.yaml:
   - Updated specifiers and versions for next and eslint-config-next from 15.3.0 to 15.3.6
   - Updated integrity hashes:
     * next@15.3.6: sha512-oI6D1zbbsh6JzzZFDCSHnnx6Qpvd1fSkVJu/5d8uluqnxzuoqtodVZjYvNovooznUq8udSAiKp7MbwlfZ8Gm6w==
     * eslint-config-next@15.3.6: sha512-UylZINx8zjSgKHFn60h6Pjwgb40xkJ1ip9jfJ5t7D9/TJNnBIMoH5MtDWdEMatby3jiUB3twvk5cZgtOGOh9Qg==
   - Updated all @next/* packages to version 15.3.6:
     * @next/env
     * @next/eslint-plugin-next
     * @next/swc-darwin-arm64
     * @next/swc-darwin-x64
     * @next/swc-linux-arm64-gnu
     * @next/swc-linux-arm64-musl
     * @next/swc-linux-x64-gnu
     * @next/swc-linux-x64-musl
     * @next/swc-win32-arm64-msvc
     * @next/swc-win32-x64-msvc
   - Updated dependency references in importers section to point to patched versions

ADVISORY COMPLIANCE:

✓ Project detected as using Next.js 15.3.x (vulnerable)
✓ No React Flight packages (react-server-dom-*) found - not applicable
✓ Upgraded to correct patched version: Next.js 15.3.0 → 15.3.6
✓ React and React-dom left as-is (^19.0.0) as per advisory guidance (Next.js manages these)
✓ Lockfile updated with patched version integrity hashes
✓ All references updated consistently across lockfile

TESTING NOTES:

The project contains a private package (@melony/ui) that is not available in the public npm registry.
This prevents full dependency installation in this environment but does not affect the validity of
the advisory mitigation. The package.json and pnpm-lock.yaml files have been correctly updated to
specify the patched Next.js 15.3.6 version. Once the private package is available or in an
environment with proper access, the standard `pnpm install` command will resolve all dependencies
to the patched version.

The changes follow the advisory exactly:
- Only affected packages (Next.js 15.3.x) were upgraded
- Upgrade was to the correct minor version patch (15.3.6)
- No unnecessary version bumps across major/minor versions
- React/React-dom not manually updated (Next.js provides correct versions)

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

vercel bot commented Dec 8, 2025

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

Project Deployment Preview Comments Updated (UTC)
melony.dev Error Error Dec 8, 2025 8:31pm

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