CVE-2026-120215 @fastify/cors vulnerable to Denial of Service on a CORS preflight with the onSend hook
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
2 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/devspaces/dashboard-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| @fastify/cors | >= 8.2.0, < 11.4.0 | 11.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/devspaces/dashboard-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| @fastify/cors | >= 8.2.0, < 11.4.0 | 11.4.0 |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2565024 issue-tracking
- www.cve.org
- nvd.nist.gov
- cna.openjsf.org
- github.com
- ENISA EUVD EUVD-2026-115123 third-party-advisory