CVE-2022-41919
Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack via incorrect content type
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Fuente: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HCiclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 3.29.4 | fastify · -1 d desde divulgación | |
| Remediación | Parche 4.10.2 | fastify · -1 d desde divulgación | |
| Divulgación | Publicada | CVE-2022-41919 divulgada · CVSS 4.2 (CNA) | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
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'.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmfastify |
Corregida | 3.29.4, 4.10.2 | -1 d · -1 d | 5.12.8 no afectada |
3.29.44.10.2Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hhhttps://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9https://www.npmjs.com/package/%40fastify/csrfLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
