
React Server Components 및 Next.js 애플리케이션에서 중요한 CVE-2025-55182 (React2Shell) 취약점을 감지하고 수정하는 CLI 도구입니다.
CVE-2025-55182는 (CVSS 10.0) 인증되지 않은 원격 코드 실행 취약점으로, 다음에 영향을 미칩니다:
이 취약점은 React Server Components Flight 프로토콜의 안전하지 않은 역직렬화 결함입니다. 악용에는 조작된 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
이슈와 풀 리퀘스트는 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 |