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

- Severity: Low 3.7 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-11-02T10:20:47.667Z
- Modified: 2026-11-02T17:17:39.737Z
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openjs

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

(As written by CVE List.)

## Affected

- @fastify/cors @fastify/cors: from 8.2.0 before 11.4.0 (not affected: 11.4.0)

## References

- <https://github.com/fastify/fastify-cors/security/advisories/GHSA-8c3j-mm64-257c>
- <https://cna.openjsf.org/security-advisories.html>

## Sources

- CVE List: [CVE-2026-120215](https://www.cve.org/CVERecord?id=CVE-2026-120215), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-120215](https://nvd.nist.gov/vuln/detail/CVE-2026-120215), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-120215 · Whole record: https://cve.day/CVE-2026-120215.json · Rebuilt by cve.day 2026-11-25T22:59:48.170Z
