llamaCVEVulnerability Intelligence
/
Fastify Multipart

CVE-2026-124289

Fastify Multipart arbitrary file write in saveRequestFiles()

An unauthenticated remote attacker can write chosen files to arbitrary paths on the server via crafted requests.

Texto original en inglés · Ver en español

UnclearParche disponiblepath traversal
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición5 dDesde la divulgación, 16 nov 2026, 8:09 a. m.
Detección32 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Medio riesgo, cero excusas.Ojo de llama: esto puede escalar.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 10.1.9
Monitoreo
Detectada +2
Fuente: OSV +1
16 nov 26
17 nov 26
18 nov 26
21 nov 26
16 nov 26
17 nov 26
19 nov 26
20 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-124289 divulgada · CVSS 7.5 (CNA)
Remediación Parche 10.1.9 @fastify/multipart · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 16 nov 2026

The @fastify/multipart plugin, when registered with the attachFieldsToBody option, lets an unauthenticated attacker over the network send a crafted JSON request or JSON-typed multipart field that makes the saveRequestFiles helper write attacker-chosen bytes to the temporary directory while skipping upload hooks and file limits. Applications that use the returned filename, which is not reduced to its basename, as a write destination can also be tricked into writing files to arbitrary relative paths.

Only affects @fastify/multipart 7.4.0 up to 10.1.9 when registered with attachFieldsToBody set to true or 'keyValues'. Fixed in 10.1.9.

¿Qué significa?A forged file in a request body can make attacker-chosen bytes get written to the temporary directory under a filename that contains path traversal. An application that uses the returned filename as a destination is then turned into an arbitrary relative-path file write by a single request.
¿Quién está afectado?Versions from 7.4.0 up to but not including 10.1.9 are affected, and only when the plugin is registered with attachFieldsToBody set to true or 'keyValues'. To check, look at the installed version with `npm ls @fastify/multipart` and at the attachFieldsToBody option in the plugin registration.
¿Qué hacer?Upgrade @fastify/multipart to 10.1.9 or later, which is the fixed version in the affected range.
Descripción original del registro (openjs)

@fastify/multipart is the official Fastify plugin for handling multipart/form-data uploads. In versions 7.4.0 through 10.1.8, when the plugin is registered with the attachFieldsToBody option, the saveRequestFiles helper treats any object in the parsed request body that carries truthy file and buffer properties as an uploaded file. An unauthenticated client can forge such an object through a plain JSON request or a JSON-typed multipart field, so attacker-chosen bytes are written to the temporary directory while upload hooks and the file count and size limits are skipped, and the saved entry keeps the attacker's filename verbatim instead of being reduced to its basename. Because that filename can contain parent directory segments, applications that use it as a write destination, as the project README example does, are exposed to an arbitrary relative-path file write from a single request. The issue is fixed in @fastify/multipart 10.1.9, and users should upgrade to 10.1.9 or later. As a workaround, call saveRequestFiles only after confirming the request is multipart, and reduce each returned filename to its basename or validate it against an allowlist before using it as a destination.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Plugin registered with attachFieldsToBody set to true or 'keyValues'.“when registered with attachFieldsToBody: true or 'keyValues'”
02
Affected @fastify/multipart versions from 7.4.0 up to but not including 10.1.9.“>= 7.4.0, < 10.1.9”
¿Quién debe revisar?Teams running @fastify/multipart 7.4.0 through 10.1.8 with attachFieldsToBody set to true or 'keyValues', including apps that call saveRequestFiles and use its filenames as write destinations.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
@fastify/multipart≥ 7.4.0 < 10.1.9
7.4.0
10.1.9
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@fastify/multipart
Corregida 10.1.9 0 d 10.1.9 no afectada
Versiones corregidas10.1.9
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Registro
EscenarioGENERALopenjs
Referencias
Fabricantehttps://github.com/fastify/fastify-multipart/security/advisories/GHSA-gmhr-r4mc-w935
Otrahttps://cna.openjsf.org/security-advisories.html

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.