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 documentation. 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

### Summary
Successfully patched the BetSwirl SDK repository to address CVE-2025-55182 (React Flight RCE) and CVE-2025-66478 (Next.js RCE).

### Vulnerability Details
The project used Next.js 15.4.x with React 19.1.0, which are affected by critical remote code execution vulnerabilities in React Server Components:
- **CVE-2025-55182**: Critical vulnerability in React's server component rendering
- **CVE-2025-66478**: Critical vulnerability in Next.js related to React Flight

### Changes Made

#### 1. Affected Project Component
- **documentation/package.json**: Next.js application with React dependencies

#### 2. Dependencies Updated
- **next**: 15.4.5 → 15.4.8 (patched version as per CVE-2025-66478 advisory)
- **react**: 19.1.0 → 19.1.2 (patched version for CVE-2025-55182)
- **react-dom**: 19.1.0 → 19.1.2 (patched version for CVE-2025-55182)
- **eslint-config-next**: 15.4.3 → 15.4.8 (maintained version parity with Next.js)

#### 3. Packages NOT Affected
- **packages/core**: No Next.js or React Flight packages detected
- **packages/ui-react**: Uses React as peer dependency only (no direct vulnerability)
- **packages/providers/wagmi**: No vulnerable packages detected

### Verification Steps Completed
1. ✓ Identified affected packages: Only documentation/ directory uses vulnerable versions
2. ✓ Verified no react-server-dom packages in use (React Flight not directly used)
3. ✓ Applied patched versions according to Vercel security advisory
4. ✓ Updated lockfile (pnpm-lock.yaml) via `pnpm install`
5. ✓ Verified patched versions resolved correctly in lockfile:
   - react@19.1.2 present in pnpm-lock.yaml
   - react-dom@19.1.2 present in pnpm-lock.yaml
6. ✓ Build verification: `npm run build` completed successfully in documentation/
7. ✓ All static pages generated without errors
8. ✓ Pagefind search indexing completed successfully

### Files Modified
- **documentation/package.json**: Updated React and Next.js versions to patched releases
- **pnpm-lock.yaml**: Updated to reflect new dependency versions

### Implementation Notes
- For Next.js projects, the security fix requires updating to the specified patched versions
- React 19.1.2 is the patched version for React 19.1.x line that addresses the RCE vulnerability
- No changes needed to application logic - security patch is purely a dependency version update
- The fix follows Vercel's official guidance for CVE-2025-66478 and CVE-2025-55182
- Build completed successfully with no errors or regressions

### Security Advisory References
- https://nextjs.org/blog/CVE-2025-66478
- https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components
- https://vercel.com/changelog/cve-2025-55182

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 Updated (UTC)
documentation Ready Ready Preview Dec 8, 2025 1:49pm
ui-react-storybook Ready Ready Preview Dec 8, 2025 1:49pm

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