Skip to content

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 nsvk13-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 (CVE-2025-55182 / CVE-2025-66478) - Patch Implementation

### Summary
Successfully patched the nsvk13.dev repository to address the critical React Flight / Next.js RCE vulnerabilities.

### Affected Package Detection
✅ **Project is affected**: Uses Next.js 15.2.4
- **Next.js**: 15.2.4 (vulnerable) → 15.2.6 (patched)
- **React Flight packages**: None directly used (react-server-dom-webpack, react-server-dom-parcel, react-server-dom-turbopack not in dependencies)
- **React**: ^19 (will be managed by Next.js)
- **React-DOM**: ^19 (will be managed by Next.js)

### Changes Made

#### 1. Updated package.json
- **Modified**: `package.json`
- Changed: `next@15.2.4` → `next@15.2.6`
- Rationale: Next.js 15.2.x upgrade rule per advisory (15.2.x → 15.2.6)

#### 2. Updated Dependencies
- Ran `bun install` to update lockfile and resolve dependencies
- **Final resolved versions**:
  - `next@15.2.6` ✅ (patched)
  - `react@19.1.0` ✅ (safe - not vulnerable, uses hardened RSC implementation from Next.js)
  - `react-dom@19.1.0` ✅ (compatible)

#### 3. Updated Lockfile
- **Modified**: `bun.lock`
- Updated dependency tree to reflect patched versions
- Verified lockfile contains exact patched version: `next@15.2.6`

### Verification

✅ **Build Verification**: `npm run build` completed successfully
- All pages compiled without errors
- Static page generation completed (8/8 pages)
- Output confirmed production build is working

✅ **Dependency Resolution**: Verified that:
- Next.js 15.2.6 provides hardened React Server Components implementation
- React 19.1.0 is safe (not part of vulnerable react-server-dom-* packages)
- No react-server-dom-* packages are used in the project
- Only security patches applied (no breaking changes)

### Key Implementation Notes

1. **Next.js Handles React Patching**: Per the advisory instructions, for Next.js projects, React and React-DOM versions are automatically managed by Next.js. The patched Next.js 15.2.6 includes the hardened React Server Components implementation.

2. **No React Flight Packages**: The project does not directly use react-server-dom-webpack, react-server-dom-parcel, or react-server-dom-turbopack, so the advisory's section 3 (non-Next React apps) was not applicable.

3. **Minimal Changes**: Only updated the Next.js version as required. No other dependencies were modified unnecessarily.

4. **Backward Compatible**: This is a patch version upgrade (15.2.4 → 15.2.6) with no breaking changes.

### Security Impact

This patch addresses **CVE-2025-55182** (React Flight RCE) and **CVE-2025-66478** (Next.js RCE), which are critical vulnerabilities (CVSS 10.0) affecting React Server Components. The patched version includes hardened payload deserialization to prevent remote code execution attacks.

### Files Modified
- `package.json` - Updated Next.js version
- `bun.lock` - Updated lockfile with patched dependencies

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)
nsvk13-dev Ready Ready Preview Comment Dec 8, 2025 3:29pm

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.

1 participant