CVE-2022-41919Fastify
Alta 8.8 Sin autenticación
Seguir: esta CVE · Fastify · Fastify Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.5% probabilidad de explotación en 30 días · percentil 37
- Requiere autenticación
- No
- Publicada
- 22 nov 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-352
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Qué pasa
Fastify is a web framework with minimal overhead and plugin architecture. The attacker can use the incorrect `Content-Type` to bypass the `Pre-Flight` checking of `fetch`. `fetch()` requests with Content-Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could potentially be used to invoke routes that only accepts `application/json` content type, thus bypassing any CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack. This issue has been patched in version 4.10.2 and 3.29.4. As a workaround, implement Cross-Site Request Forgery protection using `@fastify/csrf'.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Fastify.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | fastify |
≥ 4.0.0 < 4.10.2 |
4.10.2 |
npm install fastify@4.10.2 |
| npm | fastify |
≥ 3.0.0 < 3.29.4 |
3.29.4 |
npm install fastify@3.29.4 |
Según OSV / GitHub Advisories (GHSA-3fjj-p79j-c9hh). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| fastify | fastify | ≥ 3.0.0 < 3.29.4 |
| fastify | fastify | ≥ 4.0.0 < 4.10.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- www.npmjs.com