目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-120215— fastify/cors onSend 钩子 CORS 预检拒绝服务漏洞

一分钟漏洞结论

影响对象
@fastify/cors @fastify/cors
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

是 Fastify Web 框架的 CORS 插件。在 8.2.0 至 11.3.x 版本中,若应用程序以非默认的 钩子选项注册该插件,则在处理 CORS 预检请求时会导致服务崩溃。当收到携带 和 请求头的 OPTIONS 请求时,插件会在 钩子内部调用 ,从而重新进入响应发送流程;此时尝试第二次写入响应头会触发未捕获的 错误,若未安装进程级错误处理器,该错误将直接终止 Node.js 进程。 未经认证的远程攻击者仅需发送一次预检请求即可触发此漏洞。由于漏洞利用依赖于非默认的 配置,因此其影响仅限于服务可用性。该问

CVSS 3.7 · Low
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-120215 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
@fastify/cors vulnerable to Denial of Service on a CORS preflight with the onSend hook
来源: CVE Program / CVE List V5
Vulnerability Description
@fastify/cors is the CORS plugin for the Fastify web framework. In versions 8.2.0 through 11.3.x, an application that registers the plugin with the non-default onSend hook option crashes on a CORS preflight. On an OPTIONS request that carries the Origin and Access-Control-Request-Method headers, the plugin calls reply.send from inside the onSend hook and re-enters the send pipeline, so a second write of the response headers throws an uncaught ERR_HTTP_HEADERS_SENT that can terminate the Node.js process when no process-level handler is installed. An unauthenticated remote client can trigger this with a single preflight request, so the impact is availability only, and exploitation requires the non-default onSend configuration. The issue is fixed in @fastify/cors 11.4.0, where onSend is no longer an accepted hook value and registration fails with a clear error instead of crashing at request time, and users should upgrade to 11.4.0 or later. As a workaround, use any other hook such as the default onRequest, or set preflight to false.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
来源: CVE Program / CVE List V5
Vulnerability Type
未捕获的异常
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
@fastify/cors @fastify/cors 8.2.0 ~ 11.4.0 -

二、漏洞 CVE-2026-120215 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-120215 的情报信息

请登录查看更多情报信息。

CVE-2026-120215 厂商安全公告 (1)

IV. Related Vulnerabilities