{"id":"CVE-2026-77063","aliases":["CVE-2026-77063","GHSA-qvfw-j98x-7q72"],"related":[],"kind":"vulnerability","state":"published","title":"multer vulnerable to file size limit bypass via async fileFilter race condition","summary":"multer is a middleware for handling multipart/form-data in Node.js. When an application uses an asynchronous fileFilter together with the fileSize limit, a race condition in multer's file stream handling can allow a file that exceeds the configured size limit to bypass the size-limit rejection. All versions before 2.3.0 are affected. The impact is limited because the underlying multipart parser still truncates the stream at the size limit, so this is a bypass of the limit rejection rather than uncontrolled resource consumption. The issue is fixed in multer 2.3.0. Upgrade to multer 2.3.0 to remediate.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"multer is a middleware for handling multipart/form-data in Node.js. When an application uses an asynchronous fileFilter together with the fileSize limit, a race condition in multer's file stream handling can allow a file that exceeds the configured size limit to bypass the size-limit rejection. All versions before 2.3.0 are affected. The impact is limited because the underlying multipart parser still truncates the stream at the size limit, so this is a bypass of the limit rejection rather than uncontrolled resource consumption. The issue is fixed in multer 2.3.0. Upgrade to multer 2.3.0 to remediate.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-08-28T19:54:58.473Z","modified":"2026-09-08T21:45:04.622Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.3.0","status":"affected"},{"type":"semver","version":"2.3.0","status":"unaffected"}],"vendor":"multer","product":"multer","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.3.0"}],"ecosystem":"npm","package":"multer","purl":"pkg:npm/multer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.0"}],"vendor":"expressjs","product":"multer","cpe":"cpe:2.3:a:expressjs:multer:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/expressjs/multer/security/advisories/GHSA-qvfw-j98x-7q72","tags":["mitigation","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77063","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/multer/commit/ab6aeae650328cf31799dcfa4c3e116ba8faaacc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/multer","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/multer/releases/tag/v2.3.0","tags":["web"],"sources":["ghsa"]}],"credits":["ThinkerHao","bjohansebas","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-31T18:40:40.694Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77063","url":"https://www.cve.org/CVERecord?id=CVE-2026-77063","licence":"CVE Terms of Use","modified":"2026-08-31T18:40:55.632Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qvfw-j98x-7q72","url":"https://github.com/advisories/GHSA-qvfw-j98x-7q72","licence":"CC-BY-4.0","modified":"2026-09-08T21:45:04.622Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77063","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77063","licence":"Public domain","modified":"2026-09-02T14:46:51.367Z"}],"updatedAt":"2026-11-25T22:59:35.722Z","epss":{"score":0.002,"percentile":0.10454,"date":"2026-12-02T12:00:21.000Z"}}