
أداة سطر أوامر لكشف وإصلاح CVE-2025-55182 (React2Shell) في تطبيقات React Server Components و Next.js. تقوم بفحص الإصدارات الضعيفة وترقية الحزم مع وضع التشغيل التجريبي (dry-run).
أداة سطر أوامر لاكتشاف وإصلاح الثغرة الحرجة CVE-2025-55182 (React2Shell) في مكونات خادم React وتطبيقات Next.js.
CVE-2025-55182 هي ثغرة حرجة (CVSS 10.0) لتنفيذ التعليمات البرمجية عن بُعد دون مصادقة تؤثر على:
الثغرة هي خلل في إلغاء التسلسل غير الآمن في بروتوكول Flight لمكونات خادم React. يتطلب الاستغلال فقط طلب 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 صراحة| الحزمة | الضعيف | الآمن |
|---|---|---|
react-server-dom-webpack |
بمجرد أن تقوم بتصحيح إصداراتك وإعادة نشر تطبيقك، يُوصى بشدة بما يلي:
MIT
نرحب بالمشكلات وطلبات السحب على 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 |