{"schema":"threatline.record/2","record":{"id":"CVE-2026-74866","aliases":["GHSA-gxm5-99cw-xjw9"],"summary":"@fastify/busboy vulnerable to CRLF injection via multipart Content-Disposition filename and name","details":"### 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.","categories":["Frameworks"],"product":"@fastify/busboy","vendor":"@fastify/busboy","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-gxm5-99cw-xjw9","source_modified_at":"2026-10-05T22:33:45Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@fastify/busboy"},"range":"< 3.2.2"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-74866","source_modified_at":"2026-08-21T12:37:26.259Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"@fastify/busboy","vendor":"@fastify/busboy","versions":[{"versionType":"semver","status":"affected","version":"0","lessThan":"3.2.2"},{"versionType":"semver","status":"unaffected","version":"3.2.2"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-gxm5-99cw-xjw9","source_modified_at":"2026-10-05T22:45:04.558942837Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@fastify/busboy","purl":"pkg:npm/%40fastify/busboy"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.2.2"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-gxm5-99cw-xjw9","source_modified_at":"2026-10-05T22:33:45Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@fastify/busboy"},"version":"3.2.2"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-74866","source_modified_at":"2026-08-21T12:37:26.259Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"@fastify/busboy","ecosystem":null},"version":"3.2.2","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-gxm5-99cw-xjw9","source_modified_at":"2026-10-05T22:45:04.558942837Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@fastify/busboy","purl":"pkg:npm/%40fastify/busboy"},"version":"3.2.2"}],"cvss":5.8,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00326,"percentile":0.24478,"score_date":"2026-10-23"},"published_at":"2026-08-21T08:20:32.672Z","modified_at":"2026-10-05T22:45:04.558942837Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-gxm5-99cw-xjw9","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-05T22:33:45Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-74866","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-08-21T12:37:26.259Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-gxm5-99cw-xjw9","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-05T22:45:04.558942837Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-74866","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/fastify/busboy/security/advisories/GHSA-gxm5-99cw-xjw9"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74866","source":"GitHub Advisory Database"},{"url":"https://github.com/fastify/busboy/commit/cc7da17c5c88d79c314a9e149a79e5a00a6c23be","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://cna.openjsf.org/security-advisories.html"},{"url":"https://github.com/fastify/busboy/releases/tag/v3.2.2","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-gxm5-99cw-xjw9","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","assessed_at":"2026-08-21T12:35:38.937723Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-05T22:45:04.558942837Z","content_hash":"a4b50a34d90c5a98dd4583ed80fa8b2cb18cd5b16d14b7584a6aa2cda67d0156"}}
