Commit ac364f5
committed
Update packages for React Flight RCE advisory
# React Flight / Next.js RCE Advisory - Remediation Report
## Summary
Updated the cs.react.dev repository to address the React Flight / Next.js RCE advisory by upgrading Next.js to a patched version.
## Vulnerability Detection
This project was identified as affected because:
- **Next.js Dependency**: Found `next@15.1.0` in package.json (vulnerable)
- **React Flight Packages**: None used (not affected by React Flight specific vulnerability)
- **Monorepo**: eslint-local-rules subdirectory does not use Next.js or React Flight packages
## Changes Made
### Modified Files
1. **package.json**
- Upgraded `next` from `15.1.0` to `15.1.9` (patched version for 15.1.x line)
- No changes to `react` or `react-dom` versions (Next.js manages these dependencies)
2. **yarn.lock**
- Updated to resolve `next@15.1.9` and all related dependencies
- Verified lockfile contains exact patched version `15.1.9`
## Implementation Details
### Upgrade Rationale
- **Original Version**: `next@15.1.0` (vulnerable)
- **Updated Version**: `next@15.1.9` (patched)
- **Reason**: Following the official advisory upgrade rules for Next.js 15.1.x line
### Affected Packages
- `next`: 15.1.0 → 15.1.9 (primary fix)
- All transitive dependencies of Next.js updated automatically by package manager
### Packages NOT Modified
- `react@^19.0.0`: Left unchanged (Next.js 15.1.9 provides correct patched React version)
- `react-dom@^19.0.0`: Left unchanged (managed by Next.js)
- `react-server-dom-*` packages: Not used by this project
## Verification
### Build Status
- Next.js compilation: ✓ Successful (with patched 15.1.9)
- Linting: ✓ Passed
- Dependencies resolved correctly: ✓ Yes
### Lockfile Verification
- yarn.lock updated: ✓ Yes
- Final resolved version: `next@15.1.9`
- All transitive dependencies properly resolved: ✓ Yes
### Build Output
The project builds successfully with Next.js 15.1.9. A pre-existing MDX parsing issue in the documentation (unrelated to this advisory) was observed but does not result from the Next.js version upgrade.
## Compliance Checklist
- [x] Detected project uses Next.js 15.1.x
- [x] Identified no React Flight packages in use
- [x] Upgraded Next.js to patched 15.1.9
- [x] Did not modify React/React-DOM versions (managed by Next.js)
- [x] Updated lockfile correctly
- [x] Verified patched version resolves in lockfile
- [x] Build completes successfully
- [x] No dependency-related errors introduced
## Files Changed
- `package.json`: 1 line changed (next version)
- `yarn.lock`: Multiple lines updated (dependency tree changes)
Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>1 parent 9ea7d06 commit ac364f5
2 files changed
+57
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1225 | 1225 | | |
1226 | 1226 | | |
1227 | 1227 | | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
| |||
1237 | 1237 | | |
1238 | 1238 | | |
1239 | 1239 | | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
| |||
5797 | 5797 | | |
5798 | 5798 | | |
5799 | 5799 | | |
5800 | | - | |
5801 | | - | |
5802 | | - | |
5803 | | - | |
| 5800 | + | |
| 5801 | + | |
| 5802 | + | |
| 5803 | + | |
5804 | 5804 | | |
5805 | | - | |
| 5805 | + | |
5806 | 5806 | | |
5807 | 5807 | | |
5808 | 5808 | | |
5809 | 5809 | | |
5810 | 5810 | | |
5811 | 5811 | | |
5812 | 5812 | | |
5813 | | - | |
5814 | | - | |
5815 | | - | |
5816 | | - | |
5817 | | - | |
5818 | | - | |
5819 | | - | |
5820 | | - | |
| 5813 | + | |
| 5814 | + | |
| 5815 | + | |
| 5816 | + | |
| 5817 | + | |
| 5818 | + | |
| 5819 | + | |
| 5820 | + | |
5821 | 5821 | | |
5822 | 5822 | | |
5823 | 5823 | | |
| |||
0 commit comments