
React Server Components および Next.js アプリケーションにおける重大な CVE-2025-55182(React2Shell)脆弱性を検出・修正するための CLI ツールです。
CVE-2025-55182 は、以下に影響を与える重大(CVSS 10.0)な未認証リモートコード実行(RCE)の脆弱性です:
この脆弱性は、React Server Components の Flight プロトコルにおける安全でない逆シリアル化(unsafe deserialization)の欠陥です。悪用には細工した HTTP リクエストを送信するだけでよく、公開されたエクスプロイトコードも存在します。
回避策はありません — パッチ適用済みバージョンへのアップグレードが必要です。
npx @amirmalek/fix-react2shell
git clone https://github.com/amir-malek/react-cve-2025-55182.git
cd react-cve-2025-55182
node fix-react2shell.js
curl -O https://raw.githubusercontent.com/amir-malek/react-cve-2025-55182/main/fix-react2shell.js
node fix-react2shell.js
React/Next.js プロジェクトのディレクトリに移動して実行します:
# Dry-run mode (default) - shows what would be upgraded
npx @amirmalek/fix-react2shell
# Actually perform the upgrades
npx @amirmalek/fix-react2shell --fix
# Show detailed version information
npx @amirmalek/fix-react2shell --verbose
# Show help
npx @amirmalek/fix-react2shell --help
╔══════════════════════════════════════════════════════════════╗
║ CVE-2025-55182 (React2Shell) Vulnerability Scanner ║
╚══════════════════════════════════════════════════════════════╝
Package manager: yarn
Project: my-nextjs-app
⚠ Found 1 vulnerable package(s):
✗ next
Current: 15.3.5 → Safe: 15.3.7
────────────────────────────────────────────────────────────
DRY RUN MODE - No changes made.
Run with --fix to upgrade packages.
Command that would be run:
yarn add [email protected]
--fix が明示的に指定されない限り、ドライラン(dry-run)モードで実行されます| パッケージ | 脆弱なバージョン | 安全なバージョン |
|---|---|---|
react-server-dom-webpack |
バージョンをパッチ適用し、アプリケーションを再デプロイしたら、以下を強く推奨します:
MIT
Issue およびプルリクエストは github.com/amir-malek/react-cve-2025-55182 で歓迎します。
| 19.0.0, 19.1.0, 19.1.1, 19.2.0 |
| 19.0.1, 19.1.2, 19.2.1 |
react-server-dom-parcel | 19.0.0, 19.1.0, 19.1.1, 19.2.0 | 19.0.1, 19.1.2, 19.2.1 |
react-server-dom-turbopack | 19.0.0, 19.1.0, 19.1.1, 19.2.0 | 19.0.1, 19.1.2, 19.2.1 |
| ブランチ | 安全なバージョン |
|---|
| 15.0.x | 15.0.5 |
| 15.1.x | 15.1.9 |
| 15.2.x | 15.2.6 |
| 15.3.x | 15.3.6 |
| 15.4.x | 15.4.8 |
| 15.5.x | 15.5.7 |
| 16.0.x | 16.0.7 |