{"id":"CVE-2026-74866","aliases":["CVE-2026-74866","GHSA-gxm5-99cw-xjw9"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify/busboy vulnerable to CRLF injection via multipart Content-Disposition filename and name","summary":"@fastify/busboy is a multipart form-data parser for Node.js. Its multipart part-header parser splits header lines only on the two-byte carriage-return line-feed sequence, so a lone carriage return or line feed embedded in a part header is not treated as a line break and is carried verbatim into the parsed Content-Disposition filename and field name handed to the application. An attacker who uploads a file whose filename or field name contains a bare carriage return or line feed can inject control characters into consumers that trust the parser to return clean values, enabling filesystem filename pollution, log forging, or header injection when the value is forwarded to a carriage-return-sensitive sink. All versions of @fastify/busboy up to and including 3.2.1 are affected. The issue is fixed in version 3.2.2, which rejects any header line that still contains a bare carriage return or line feed. Users should upgrade to 3.2.2, and consumers such as @fastify/multipart should bump their @fastify/busboy dependency to pull in the fix.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@fastify/busboy is a multipart form-data parser for Node.js. Its multipart part-header parser splits header lines only on the two-byte carriage-return line-feed sequence, so a lone carriage return or line feed embedded in a part header is not treated as a line break and is carried verbatim into the parsed Content-Disposition filename and field name handed to the application. An attacker who uploads a file whose filename or field name contains a bare carriage return or line feed can inject control characters into consumers that trust the parser to return clean values, enabling filesystem filename pollution, log forging, or header injection when the value is forwarded to a carriage-return-sensitive sink. All versions of @fastify/busboy up to and including 3.2.1 are affected. The issue is fixed in version 3.2.2, which rejects any header line that still contains a bare carriage return or line feed. Users should upgrade to 3.2.2, and consumers such as @fastify/multipart should bump their @fastify/busboy dependency to pull in the fix.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`@fastify/busboy` 3.2.1 and earlier retains a bare carriage return or line feed inside the parsed `Content-Disposition` parameters returned to the application. The multipart header parser ends a header line only on the two-byte `\\r\\n` sequence, so a lone CR or LF embedded in a part header is carried verbatim into the `filename` and field `name` delivered by the `file` and `field` events. An application that forwards the supplied filename or name into a CR/LF-sensitive sink cannot anticipate the embedded control character.\n\nAn attacker who uploads a file whose `filename` or field `name` contains a bare CR or LF can pollute filenames on disk when the upload is saved under its original name, inject forged lines into logs, or inject headers on a downstream hop that does not re-validate CR/LF, such as object-storage metadata or a proxied backend. Applications using `@fastify/busboy` directly, or through `@fastify/multipart` and its consumers, are affected.\n\n### Patches\n\nUpgrade to `@fastify/busboy` 3.2.2 or later.\n\n### Workarounds\n\nValidate or strip carriage return and line feed characters from the `filename` and field `name` before using them in any filesystem, logging, or outbound-header context.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@fastify/busboy es un analizador de datos de formulario multipart para Node.js. Su analizador de encabezados de parte multipart divide las líneas de encabezado solo en la secuencia de dos bytes de retorno de carro y salto de línea, por lo que un retorno de carro o salto de línea solitario incrustado en un encabezado de parte no se trata como un salto de línea y se transfiere textualmente al nombre de archivo y nombre de campo de Content-Disposition analizados entregados a la aplicación. Un atacante que carga un archivo cuyo nombre de archivo o nombre de campo contiene un retorno de carro o salto de línea simple puede inyectar caracteres de control en consumidores que confían en que el analizador devuelva valores limpios, lo que permite la contaminación de nombres de archivo del sistema de archivos, la falsificación de registros o la inyección de encabezados cuando el valor se reenvía a un sumidero sensible al retorno de carro. Todas las versiones de @fastify/busboy hasta la 3.2.1 inclusive están afectadas. El problema está solucionado en la versión 3.2.2, la cual rechaza cualquier línea de encabezado que aún contenga un retorno de carro o salto de línea simple. Los usuarios deben actualizar a la versión 3.2.2, y los consumidores, como @fastify/multipart, deben actualizar su dependencia de @fastify/busboy para incorporar la solución.","source":"nvd"}],"published":"2026-08-21T08:20:32.672Z","modified":"2026-10-16T15:10:00.103Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-93"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.2.2","status":"affected"},{"type":"semver","version":"3.2.2","status":"unaffected"}],"vendor":"@fastify/busboy","product":"@fastify/busboy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.2.2"}],"ecosystem":"npm","package":"@fastify/busboy","purl":"pkg:npm/%40fastify/busboy","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.2.2"}],"vendor":"fastify","product":"fastify/busyboy","cpe":"cpe:2.3:a:fastify:fastify\\/busyboy:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/fastify/busboy/security/advisories/GHSA-gxm5-99cw-xjw9","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74866","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/busboy/commit/cc7da17c5c88d79c314a9e149a79e5a00a6c23be","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/busboy","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/fastify/busboy/releases/tag/v3.2.2","tags":["web"],"sources":["ghsa"]}],"credits":["tonghuaroot","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-21T12:35:38.937Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74866","url":"https://www.cve.org/CVERecord?id=CVE-2026-74866","licence":"CVE Terms of Use","modified":"2026-08-21T12:37:26.259Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gxm5-99cw-xjw9","url":"https://github.com/advisories/GHSA-gxm5-99cw-xjw9","licence":"CC-BY-4.0","modified":"2026-10-05T22:45:04.558Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74866","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74866","licence":"Public domain","modified":"2026-10-16T15:10:00.103Z"}],"updatedAt":"2026-11-25T22:59:34.767Z","epss":{"score":0.00193,"percentile":0.09425,"date":"2026-12-01T12:00:22.000Z"}}