๐Ÿ” CVE Alert

CVE-2026-120215

LOW 3.7

@fastify/cors vulnerable to Denial of Service on a CORS preflight with the onSend hook

CVSS Score
3.7
EPSS Score
0.0%
EPSS Percentile
0th

@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.

CWE CWE-248
Vendor @fastify/cors
Product @fastify/cors
Published Nov 2, 2026
Stay Ahead of the Next One

Get instant alerts for @fastify/cors @fastify/cors

Be the first to know when new low vulnerabilities affecting @fastify/cors @fastify/cors are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

@fastify/cors / @fastify/cors
8.2.0 < 11.4.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/fastify/fastify-cors/security/advisories/GHSA-8c3j-mm64-257c cna.openjsf.org: https://cna.openjsf.org/security-advisories.html

Credits

๐Ÿ” Ravin06 mcollina UlisesGascon