Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
next-security-check — 检查 Next.js 项目是否受 2026 年 10 月 14 日安全公告(CVE-2026-96889、use cache RCE、Server Actions DoS)影响。无依赖。 | Kitploit
工具/GitHubGitHub/amansin001/next-security-check
静态分析漏洞扫描器漏洞分析Web安全DevSecOps供应链安全
GitHubamansin001/next-security-check

next-security-check

检查 Next.js 项目是否受 2026 年 10 月 14 日安全公告(CVE-2026-96889、use cache RCE、Server Actions DoS)影响。无依赖。

查看仓库
118天前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

next-security-check

用一条命令、零依赖地检查 Next.js 项目是否受 2026 年 10 月 14 日 Next.js 安全公告 影响:

  • CVE-2026-96889(GHSA-2464-fhr4-w9xw):通过 sharp 在 Image Optimization API 中处理 SVG 时的远程代码执行(严重)
  • GHSA-673q-mjm6-r5xr:返回类型化数组的 use cache 函数中的远程代码执行(严重,Next.js 16)
  • GHSA-p3m5-59mp-jv5r:Server Actions 中的拒绝服务(高危)
  • GHSA-xqc2-xf4c-x3h3:React Server Components 包,若直接安装(严重)

它读取 node_modules 中实际安装的版本(npm、pnpm 或 yarn 的目录布局,包括嵌套副本),而不是 package.json 中的版本范围,并扫描源码中的 "use cache"、"use server" 和 next/image。

完整说明:Next.js 安全更新,2026 年 10 月

用法

需要 Node.js 18 或更高版本。安装依赖包后,在项目根目录运行:

curl -O https://raw.githubusercontent.com/AmanSin001/next-security-check/main/next-security-check.mjs
node next-security-check.mjs            # current folder
node next-security-check.mjs ./my-app   # or a path
echo $?                                 # 0 = nothing to do, 1 = action needed

输出示例

一个真实安装了 Next.js 16.3.0、使用 Server Actions 和 next/image 的环境:

Next.js security check (October 14, 2026 advisories)
next:     16.3.0
sharp:    0.35.3
features: App Router yes, "use cache" no, Server Actions yes, next/image yes

FIX  CVE-2026-96889       Image Optimization RCE with SVG (critical)
      your app uses next/image. sharp 0.35.3 installed; needs 0.35.5+.
      Fix: next 16.4.1, or sharp 0.35.5+ for every copy
FIX  GHSA-673q-mjm6-r5xr  use cache RCE (critical, Next.js 16)
      no "use cache" found; Vercel still says upgrade
      Fix: next 16.4.1
FIX  GHSA-p3m5-59mp-jv5r  Server Actions denial of service (high)
      your code has "use server"
      Fix: next 16.4.1
ok   GHSA-xqc2-xf4c-x3h3  React Server Components packages (critical)
      not installed directly (Next.js bundles its own)

Action needed: upgrade, reinstall, rebuild and redeploy.

Next.js 15 上的 sharp 陷阱

Next.js 15.5.28 仍然接受 sharp ^0.34.3,而 0.34 系列没有修复版本。如果 sharp 出现在你自己的 package.json 中,或被锁定在 lockfile 里,升级 Next.js 并不会替换它。检查器会标记此问题,并建议执行 npm install sharp@^0.35.5。

修复版本

系列修复版本
Next.js 1616.4.1
Next.js 1515.5.28
sharp0.35.5 或更高
react-server-dom-*19.0.9, 19.1.10, 19.2.9, 19.3.1

测试

node --test next-security-check.test.mjs

共八个用例,包括 pnpm 的 .pnpm 布局、符号链接、15.x 的 sharp 陷阱以及 Pages Router 应用。

局限性

  • 源码扫描只查看 app、src、pages、components 和 lib。构建时生成的代码或位于其他包中的代码不会被发现。如有疑问,请升级。
  • 它只报告已安装的包。升级后请重新构建并重新部署;正在运行的服务器仍会保留旧代码。

许可证

MIT。需要为你打补丁?CodeWares。

下载工具