Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
fix-react2shell-next — 一条命令即可修复你的 Next.js / React RSC 应用中的 CVE-2025-66478 (React 2 Shell RCE)。 | Kitploit
工具/GitHubGitHub/vercel-labs/fix-react2shell-next
漏洞扫描器代码分析脚本与自动化Web安全DevSecOps供应链安全
GitHubvercel-labs/fix-react2shell-next

fix-react2shell-next

一条命令即可修复你的 Next.js / React RSC 应用中的 CVE-2025-66478 (React 2 Shell RCE)。

查看仓库
401638个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

fix-react2shell-next

fix-react2shell-next

一条命令修复 Next.js / React RSC 应用中的 CVE-2025-66478(React 2 Shell RCE)漏洞。

root@kitploit:~
npx fix-react2shell-next

按照官方公告进行确定性的版本升级。

功能简介

  1. 递归扫描所有 package.json 文件(支持 monorepo)
  2. 检查以下包是否存在易受攻击的版本:
    • next
    • react-server-dom-webpack
    • react-server-dom-parcel
    • react-server-dom-turbopack
  3. 根据当前版本修补到正确的修复版本
  4. 使用检测到的包管理器刷新 lockfile

受影响版本

Next.js

React RSC 包

当前版本修复版本
19.0.019.0.1
19.1.0, 19.1.119.1.2
19.2.019.2.1

用法

检查并修复(交互式)

root@kitploit:~
npx fix-react2shell-next

自动修复(CI / 非交互式)

root@kitploit:~
npx fix-react2shell-next --fix

仅检查(试运行)

root@kitploit:~
npx fix-react2shell-next --dry-run

JSON 输出(用于脚本)

root@kitploit:~
npx fix-react2shell-next --json

示例输出

root@kitploit:~
🔍 fix-react2shell-next - CVE-2025-66478 vulnerability scanner

📂 Found 3 package.json file(s)

🚨 Found 2 vulnerable file(s):

  📄 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

🔧 Apply fixes? [Y/n] y

🔧 Applying fixes...

   ✓ Updated package.json
   ✓ Updated apps/web/package.json

📦 Package manager: pnpm
🔄 Refreshing lockfile...

$ pnpm install

✅ Patches applied!
   Remember to test your app and commit the changes.

Monorepo 支持

该工具会自动查找项目中的所有 package.json 文件,并排除以下路径:

  • node_modules
  • .next, .turbo, .vercel, .nuxt
  • dist, build, .output
  • coverage

支持 npm、yarn、pnpm 和 bun workspaces。

参考

  • GitHub 安全公告 GHSA-9qr9-h5gf-34mp
  • Next.js 安全公告
  • React 安全公告

许可证

MIT

下载工具
当前版本修复版本
15.0.0 – 15.0.415.0.5
15.1.0 – 15.1.815.1.9
15.2.0 – 15.2.515.2.6
15.3.0 – 15.3.515.3.6
15.4.0 – 15.4.715.4.8
15.5.0 – 15.5.615.5.7
16.0.0 – 16.0.616.0.7
15.x canary 版本15.6.0-canary.58
16.x canary 版本16.1.0-canary.12
14.3.0-canary.77+降级到 14.3.0-canary.76 或升级到 15.0.5