Commit Graph

8 Commits

Author SHA1 Message Date
Vercel
89fd5bcb0d Update React Flight/Next.js RCE vulnerability
## React Flight / Next.js RCE Advisory Update

### Summary
Successfully addressed the React Flight / Next.js RCE advisory for the worth-calculator project. The project was affected by the vulnerability as it uses Next.js 15.x.

### Vulnerability Detection
**Affected Packages Found:**
-  `next@15.0.2` - Vulnerable version detected in dependencies
-  `eslint-config-next@15.0.2` - Dev dependency that needed updating

**Not Used:**
-  `react-server-dom-webpack` - Not used
-  `react-server-dom-parcel` - Not used  
-  `react-server-dom-turbopack` - Not used

### Changes Made

#### Modified Files:
1. **package.json**
   - Upgraded `next` from `15.0.2` → `15.0.5` (patched version for 15.0.x)
   - Upgraded `eslint-config-next` from `15.0.2` → `15.0.5` (matching version)
   - React versions left unchanged as Next.js manages these dependencies automatically

2. **package-lock.json**
   - Updated via `npm install --legacy-peer-deps`
   - All dependencies resolved to compatible versions

### Verification Results

 **Build Verification**: `npm run build` completed successfully
- Next.js 15.0.5 built without errors
- All pages generated correctly
- Pre-existing ESLint warnings only (not introduced by this change)

 **Linter Check**: `npm run lint` passed
- Only pre-existing warnings found
- No new errors introduced by the update

 **Dependency Resolution**: Confirmed via `npm ls`
- next@15.0.5 ✓
- eslint-config-next@15.0.5 ✓

### Notes
- The project uses an RC build of React (`19.0.0-rc-02c0e824-20241028`) which required using `--legacy-peer-deps` flag during installation, but this is not a blocker as it's already configured in the project
- No React or React-DOM version changes needed as Next.js handles these automatically
- No manual changes to application code were required
- All changes are dependency-related and backward compatible

### Security Impact
This update patches the Next.js vulnerability affecting React Server Components security, addressing the RCE advisory identified in the security notice.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2025-12-08 11:38:06 +00:00
zihanjian
6b1638b24e 新增 @vercel/analytics 依赖并在布局中集成分析组件 2025-05-26 00:35:26 +08:00
SukkaW
adc9eac4db perf: enable Next.js built-in react compiler 2025-04-01 12:51:36 +08:00
kenvie
2071606ac9 feat: 增加历史记录功能,数据存储在浏览器本地存储 2025-03-30 19:38:29 +08:00
Zylan
cc5fd54453 debug 2025-03-21 15:36:12 +08:00
Zylan
cacd1ea9f0 图片生成 2025-03-19 18:24:52 +08:00
Zihan
a8a24f9fbc first commit 2024-10-31 03:54:57 +11:00
Zihan
de98fa7682 Initial commit from Create Next App 2024-10-31 03:31:59 +11:00