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 diamond-host-docs. 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 Fix Report

## Summary
Updated the diamond-host-docs repository to address the React Flight / Next.js RCE advisory (CVE-2024-5853).

## Vulnerability Assessment
**Status:** Project is AFFECTED

The project uses:
- ✅ **Next.js 15.5.4** (vulnerable version in 15.5.x range)
- ❌ Does NOT use React Flight packages (react-server-dom-webpack, react-server-dom-parcel, react-server-dom-turbopack)

## Changes Made

### Modified Files:
1. **package.json**
   - Upgraded `next` from `15.5.4` to `15.5.7` (patched version)
   - Upgraded `eslint-config-next` from `15.5.4` to `15.5.7` (matching Next.js version)
   - Note: `react` and `react-dom` were NOT manually upgraded as Next.js supplies the correct patched versions automatically

2. **package-lock.json**
   - Updated to reflect new dependency versions
   - All transitive dependencies for Next.js 15.5.7 installed correctly
   - Lockfile now contains the patched Next.js version and all related @next/* packages at 15.5.7

### No Changes Needed For:
- React Flight packages (project doesn't use any)
- Direct React/React-DOM versions (handled automatically by Next.js)

## Verification Results

✅ **Build**: `npm run build` completed successfully with Next.js 15.5.7
- All 12 static pages generated successfully
- No build errors
- Production bundle created correctly

✅ **Linting**: `npm run lint` executed with 1 pre-existing warning (unrelated to changes)

✅ **Dependency Resolution**: Package-lock.json correctly resolves to:
- `next@15.5.7`
- All related `@next/*` packages at `15.5.7`

## Implementation Details

The fix follows the advisory guidelines for Next.js projects:
- Detected Next.js 15.x presence in dependencies
- Applied the correct patch version: 15.5.x → 15.5.7
- Did not upgrade across major versions
- Did not manually override react/react-dom versions (Next.js handles this)
- Ran package manager install to update lockfile
- Verified build succeeds with patched versions

## Security Impact

This update patches the React Flight / Next.js RCE vulnerability (CVE-2024-5853) by:
- Using Next.js 15.5.7 which includes the security fix
- Ensuring the bundled React version is patched
- Maintaining compatibility with existing application code

No breaking changes or code modifications were required beyond the version bumps.

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)
diamond-host-docs Ready Ready Preview Comment Dec 8, 2025 10:14am

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