Skip to content

Conversation

@vercel
Copy link

@vercel vercel bot commented Dec 6, 2025

A critical remote code execution (RCE) vulnerability in React Server Components, impacting frameworks such as Next.js, was identified in the project ai-sdk-preview-pdf-support. 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 remediate the issue.

More Info

## React Flight / Next.js RCE Advisory Fix

### Summary
Updated the repository to address the React Flight / Next.js RCE advisory by upgrading vulnerable Next.js packages to patched versions.

### Project Analysis
- **Project Type**: Next.js application
- **Affected**: Yes - Next.js 15.0.3 requires patching
- **Vulnerable Packages Found**: `next` 15.0.3
- **React Flight Packages**: None detected (no `react-server-dom-*` packages)

### Changes Made

#### Files Modified
1. **package.json**
   - Upgraded `next` from 15.0.3 → 15.0.5
   - Upgraded `eslint-config-next` from 15.0.3 → 15.0.5

2. **package-lock.json**
   - Updated lockfile to resolve Next.js 15.0.5 and all transitive dependencies

### Vulnerability Details
The project was using Next.js 15.0.3, which is affected by the React Flight / Next.js RCE advisory. According to the advisory:
- Next.js 15.0.x versions < 15.0.5 are vulnerable
- The fix applies to all Next.js 15.0.x releases

### Upgrade Logic Applied
- Detected Next.js 15.0.3 → Applied 15.0.5 patch (15.0.x → 15.0.5)
- Did NOT manually upgrade React/React-DOM (Next.js 15.0.5 supplies the correct patched versions automatically)
- Did NOT modify any React Flight packages (none present in project)

### Verification
✅ **Build Status**: Successful
- Ran `npm run build` after updating dependencies
- Build completed with no dependency-related errors
- All pages compiled successfully
- Static generation completed for all routes

✅ **Dependency Resolution**: Verified
- `npm list next` confirms installation of Next.js 15.0.5
- lockfile.json properly reflects the patched version

### Testing Notes
- The project is a Next.js app with React 18.3.1 (not vulnerable versions 19.0.0, 19.1.0, 19.1.1, 19.2.0)
- No React Flight packages were present in the project
- Only Next.js package required patching
- Build verification passed without issues

### Summary of Changes
- 2 files modified: package.json, package-lock.json
- 0 files created: No new configuration needed
- All changes follow the official advisory guidance

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

vercel bot commented Dec 6, 2025

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

Project Deployment Preview Comments Updated (UTC)
ai-sdk-preview-pdf-support Ready Ready Preview Comment Dec 6, 2025 6:19am

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