

1つのコマンドで、Next.js / React RSC アプリにおける CVE-2025-66478(React 2 Shell RCE)を修正します。
npx fix-react2shell-next
公式アドバイザリに従った決定論的なバージョンアップです。
package.json ファイルをスキャンします(モノレポ対応)nextreact-server-dom-webpackreact-server-dom-parcelreact-server-dom-turbopack| 現在のバージョン | 修正バージョン |
|---|---|
| 19.0.0 | 19.0.1 |
| 19.1.0, 19.1.1 | 19.1.2 |
| 19.2.0 | 19.2.1 |
npx fix-react2shell-next
npx fix-react2shell-next --fix
npx fix-react2shell-next --dry-run
npx fix-react2shell-next --json
🔍 fix-react2shell-next - CVE-2025-66478 脆弱性スキャナー
📂 3 個の package.json ファイルを検出しました
🚨 2 個の脆弱なファイルを検出しました:
📄 package.json
next: ^15.1.0 → 15.1.9
📄 apps/web/package.json
next: ^15.4.3 → 15.4.8
react-server-dom-webpack: 19.1.0 → 19.1.2
🔧 修正を適用しますか? [Y/n] y
🔧 修正を適用中...
✓ package.json を更新しました
✓ apps/web/package.json を更新しました
📦 パッケージマネージャー: pnpm
🔄 ロックファイルを更新中...
$ pnpm install
✅ パッチが適用されました!
アプリをテストし、変更をコミットすることを忘れないでください。
このツールはプロジェクト内のすべての package.json ファイルを自動的に検出します。以下のディレクトリは除外されます:
node_modules.next、.turbo、.vercel、.nuxtdist、build、.outputcoveragenpm、yarn、pnpm、bun のワークスペースで動作します。
MIT
| 現在のバージョン | 修正バージョン |
|---|
| 15.0.0 – 15.0.4 | 15.0.5 |
| 15.1.0 – 15.1.8 | 15.1.9 |
| 15.2.0 – 15.2.5 | 15.2.6 |
| 15.3.0 – 15.3.5 | 15.3.6 |
| 15.4.0 – 15.4.7 | 15.4.8 |
| 15.5.0 – 15.5.6 | 15.5.7 |
| 16.0.0 – 16.0.6 | 16.0.7 |
| 15.x カナリー版 | 15.6.0-canary.58 |
| 16.x カナリー版 | 16.1.0-canary.12 |
| 14.3.0-canary.77+ | 14.3.0-canary.76 にダウングレード または 15.0.5 にアップグレード |