GHSA-HPVC-WJ3G-H9P8
Blocked event loop via sparse array field names on the Fastify adapter
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 12.1.3 | @nestjs/platform-fastify · -31 d desde divulgación | |
| Divulgación | Publicada | GHSA-HPVC-WJ3G-H9P8 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
| Field | Value |
| --- | --- |
| Ecosystem | npm |
| Package | `@nestjs/platform-fastify` |
| Affected versions | `>= 12.1.0, < 12.1.3` |
| Patched versions | `12.1.3` |
| Severity | High |
| CVSS v3.1 | `AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` (7.5) |
| CWE | CWE-834 (Excessive Iteration), CWE-400 (Uncontrolled Resource Consumption) |
Summary
The multipart parser of `@nestjs/platform-fastify` could take time proportional to the largest array index in a field name, not to the number of fields sent. A single small request could block the event loop for a long time, and some field names made the request fail with a 500.
Impact
Applications using the Fastify adapter with any upload interceptor from `@nestjs/platform-fastify/multipart` are affected. No authentication is needed unless a guard protects the route.
Patches
Fixed in 12.1.3. Field objects are built from the items present only, and invalid field names are answered with 400. Since 12.2.0, `fieldArrayIndexLimit` also defaults to 1000.
Workarounds
Upgrade. There is no configuration workaround on the affected versions.
Credit
Found by the NestJS maintainers.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@nestjs/platform-fastify |
Corregida | 12.1.3 | -31 d | 12.5.0 no afectada |
12.1.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/nestjs/nest/security/advisories/GHSA-hpvc-wj3g-h9p8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
