Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-120215— @fastify/cors vulnerable to Denial of Service on a CORS preflight with the onSend hook

Quick assessment

Affected
@fastify/cors @fastify/cors
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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

CVSS 3.7 · Low

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-120215

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
@fastify/cors vulnerable to Denial of Service on a CORS preflight with the onSend hook
Source: 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.
Source: 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
Source: CVE Program / CVE List V5
Vulnerability Type
未捕获的异常
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
@fastify/cors @fastify/cors 8.2.0 ~ 11.4.0 -

II. Public POCs for CVE-2026-120215

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-120215

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

Vendor Advisories for CVE-2026-120215 (1)

IV. Related Vulnerabilities