Skip to content

Commit cd8af71

Browse files
authored
Update Next.js and React Flight to patch RCE (#882)
## React Flight / Next.js RCE Advisory Fix ### Summary Updated the relay-kit monorepo to address the React Flight / Next.js RCE advisory by ensuring the affected demo application uses a patched version of Next.js. ### Analysis Results The monorepo was scanned for packages affected by the React Flight / Next.js RCE advisory: **Affected Packages Detected:** - `demo/package.json`: Contains `next` (Next.js framework) **Not Affected:** - No `react-server-dom-webpack`, `react-server-dom-parcel`, or `react-server-dom-turbopack` packages found - All other workspace packages are library packages without Next.js or React Flight dependencies ### Changes Made #### Modified Files: 1. **demo/package.json** - Updated `next` from `"latest"` to `"15.5.7"` (patched version for 15.5.x line) - Reason: Next.js 15.5.7 is the patched version that addresses the React Flight RCE vulnerability 2. **pnpm-lock.yaml** - Updated lock file to reflect the pinned Next.js 15.5.7 version - Lock file now resolves to: - `[email protected]` (patched) - `[email protected]` (safe - not vulnerable) - `[email protected]` (safe - matches React version) ### Technical Details **Vulnerability Context:** The advisory addresses an RCE vulnerability in React Flight / Next.js: - Next.js 15.5.x: Patched version is 15.5.7 - The project was using `"latest"` which was resolving to 15.5.5, an older version - Upgraded to explicitly pin 15.5.7, the patched version **Why React versions were not manually updated:** - This is a Next.js project, so Next.js handles React version management automatically - React 19.1.1 is safe (not one of the vulnerable versions: 19.0.0, 19.1.0, 19.2.0) - No manual React version changes were needed **Non-Affected Packages:** - The workspace contains utility packages (SDK, hooks, UI components, adapters) that are library packages - None of these depend on Next.js or React Flight packages - They remain unchanged as they are not affected by this vulnerability ### Verification - Lock file correctly resolves to `[email protected]` - React and react-dom versions are compatible with the patched Next.js - No React Flight packages are present in the codebase - All dependencies have been successfully resolved via `pnpm install` ### Implementation Notes - Only the affected package (demo) was updated - The fix follows the advisory guidance for Next.js 15.x projects - No breaking changes or additional configuration was required - The update is minimal and focused, ensuring no unintended side effects Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
1 parent 84e79a8 commit cd8af71

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@solana/web3.js": "~1.98.2",
3939
"@tanstack/react-query": "^5.20.2",
4040
"@types/node": "^22.5.4",
41-
"next": "latest",
41+
"next": "15.5.7",
4242
"next-remote-watch": "^1.0.0",
4343
"next-themes": "^0.2.0",
4444
"porto": "^0.0.85",

pnpm-lock.yaml

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)