{"id":"CVE-2026-120215","aliases":["CVE-2026-120215"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify/cors vulnerable to Denial of Service on a CORS preflight with the onSend hook","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@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":"cvelist"}],"published":"2026-11-02T10:20:47.667Z","modified":"2026-11-02T17:17:39.737Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"type":"semver","introduced":"8.2.0","fixed":"11.4.0","status":"affected"},{"type":"semver","version":"11.4.0","status":"unaffected"}],"vendor":"@fastify/cors","product":"@fastify/cors","source":"cvelist"}],"references":[{"url":"https://github.com/fastify/fastify-cors/security/advisories/GHSA-8c3j-mm64-257c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["Ravin06","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-02T17:03:55.457Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120215","url":"https://www.cve.org/CVERecord?id=CVE-2026-120215","licence":"CVE Terms of Use","modified":"2026-11-02T17:04:11.417Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120215","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120215","licence":"Public domain","modified":"2026-11-02T17:17:39.737Z"}],"updatedAt":"2026-11-25T22:59:48.170Z","epss":{"score":0.00291,"percentile":0.23369,"date":"2026-12-01T12:00:22.000Z"}}