{"id":"GHSA-qvfw-j98x-7q72","revision":"481f6489d17545bb888ff58794624b2b","records":[{"revision":"481f6489d17545bb888ff58794624b2b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-qvfw-j98x-7q72","aliases":["CVE-2026-77063"],"title":"multer vulnerable to file size limit bypass via async fileFilter race condition","description":"### Impact\n\nWhen `multer` is configured with an asynchronous `fileFilter`, the `limits.fileSize` limit can be bypassed. The `'limit'` event is registered inside the async `fileFilter` callback, so if a file exceeds `limits.fileSize` before that callback runs, the event is missed and the oversized upload is accepted instead of being rejected with a `LIMIT_FILE_SIZE` error. Applications that rely on `limits.fileSize` to reject oversized uploads are affected on all upload methods (`.single()`, `.array()`, `.fields()`, `.any()`). Uploads using a synchronous `fileFilter` are not affected.\n\n### Patches\n\nUsers should upgrade to `2.3.0`.\n\n### Workarounds\n\nUse a synchronous `fileFilter`, or validate the uploaded file size after the upload completes.","state":0,"publishedAt":"2026-09-08T21:29:42+00:00","modifiedAt":"2026-09-08T21:45:04.6226547+00:00","affected":[{"ecosystem":"npm","name":"multer","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.3.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/expressjs/multer/security/advisories/GHSA-qvfw-j98x-7q72","https://nvd.nist.gov/vuln/detail/CVE-2026-77063","https://github.com/expressjs/multer/commit/ab6aeae650328cf31799dcfa4c3e116ba8faaacc","https://cna.openjsf.org/security-advisories.html","https://github.com/expressjs/multer","https://github.com/expressjs/multer/releases/tag/v2.3.0"],"sourceUrl":"https://github.com/advisories/GHSA-qvfw-j98x-7q72","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qvfw-j98x-7q72","identifiers":["GHSA-qvfw-j98x-7q72","CVE-2026-77063"]},"retained":false,"historicalAffected":[]}],"coverage":[]}