
Herramienta CLI para detectar y solucionar CVE-2025-55182 (React2Shell) en Componentes del Servidor React y aplicaciones Next.js. Escanea en busca de versiones vulnerables y actualiza paquetes con modo dry-run.
Una herramienta CLI para detectar y corregir la vulnerabilidad crítica CVE-2025-55182 (React2Shell) en React Server Components y aplicaciones Next.js.
CVE-2025-55182 es una vulnerabilidad crítica (CVSS 10.0) de ejecución remota de código no autenticada que afecta a:
La vulnerabilidad es un fallo de deserialización insegura en el protocolo Flight de React Server Components. La explotación solo requiere una solicitud HTTP manipulada, y existe código de explotación público disponible.
No existe solución alternativa — es necesario actualizar a una versión parcheada.
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
Navega al directorio de tu proyecto React/Next.js y ejecuta:
# 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| Paquete | Vulnerable | Segura |
|---|---|---|
react-server-dom-webpack |
Una vez que hayas parcheado tus versiones y vuelto a implementar tu aplicación, es altamente recomendable:
MIT
Las incidencias y solicitudes de extracción son bienvenidas en 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 |
| Rama | Versión Segura |
|---|
| 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 |