{"id":"CVE-2026-12590","published":"2026-07-09T10:21:10Z","modified":"2026-07-09T12:06:01Z","title":"body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement","vendor":"body-parser","product":"body-parser","tier":"tail","description":{"text":"Impact: In body-parser versions prior to 1.20.6 (1.x line) and 2.3.0 (2.x line), when the parser is configured with an invalid limit option value such as an unparseable string or NaN, bytes.parse returns null and the request body size check is silently skipped. Applications that rely on limit as their primary safeguard against oversized request bodies will accept arbitrarily large payloads, leading to excessive memory and CPU usage and denial of service. Patches: This issue is fixed in body-parser 1.20.6 and 2.3.0. After the fix, invalid limit values throw a clear error at parser construction time instead of silently disabling enforcement, while null and undefined continue to fall back to the default limit of 100kb. Workarounds: Validate the limit value before passing it to body-parser. For example, parse the value at startup and reject any configuration where the result is null or a non-finite number.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00412,"percentile":0.27061,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/expressjs/body-parser/security/advisories/GHSA-v422-hmwv-36x6","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":5.41},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"body-parser","affectedVersions":[{"vendor":"body-parser","product":"body-parser","versions":["< 1.20.6",">= 2.0.0, < 2.3.0"]}],"fixedVersions":[{"vendor":"body-parser","product":"body-parser","versions":["1.20.6","2.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-09T12:05:36.853756Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"body-parser","vulnerableRanges":["<1.20.6",">=2.0.0, <2.3.0"],"patched":["1.20.6","2.3.0"],"from":["GHSA-v422-hmwv-36x6"],"provenance":"source"}],"summary":{"text":"The body-parser package (versions before 1.20.6 on the 1.x line and before 2.3.0 on the 2.x line) fails to enforce its request body size limit when it is configured with an invalid limit value such as an unparseable string or NaN, because the size check is silently skipped. An unauthenticated remote attacker able to send HTTP requests to an affected application can submit arbitrarily large bodies, but only where the application relies on limit as its main safeguard and has such a misconfigured value, causing excessive memory and CPU consumption and denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:49Z"},"euvd":{"id":"EUVD-2026-42577","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-body-parser-cve-2024-45590","parents":[{"from":"CVE-2024-45590","to":"CVE-2026-12590","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:body-parser","fromFixed":"1.20.3","toFixed":"1.20.6","daysApart":667},{"kind":"same-code","provenance":"machine","files":["lib/types/urlencoded.js"],"commits":["https://github.com/expressjs/body-parser/commit/b2695c4450f06ba3b0ccf48d872a229bb41c9bce","https://github.com/expressjs/body-parser/commit/2322e111cc321413ec2b7b76d01be533d3de9d7d","https://github.com/expressjs/body-parser/commit/3492672eee593d5c158f239b6e9115498a5dbeac"],"basis":"shared function","functions":["urlencoded"]}]},{"from":"CVE-2025-13466","to":"CVE-2026-12590","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:body-parser","fromFixed":"2.2.1","toFixed":"2.3.0","daysApart":227},{"kind":"same-code","provenance":"machine","files":["lib/types/urlencoded.js"],"commits":["https://github.com/expressjs/body-parser/commit/b204886a6744b0b6d297cd0e849d75de836f3b63","https://github.com/expressjs/body-parser/commit/2322e111cc321413ec2b7b76d01be533d3de9d7d","https://github.com/expressjs/body-parser/commit/3492672eee593d5c158f239b6e9115498a5dbeac"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-45590","published":"2024-09-10","fixed":"1.20.3","kev":false},{"cve":"CVE-2025-13466","published":"2025-11-24","fixed":"2.2.1","kev":false},{"cve":"CVE-2026-12590","published":"2026-07-09","fixed":"2.3.0","kev":false},{"cve":"CVE-2026-111181","published":"2026-10-22","fixed":"2.4.0","kev":false,"link":{"from":"CVE-2026-12590","to":"CVE-2026-111181","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:body-parser","fromFixed":"1.20.6","toFixed":"1.20.9","daysApart":105},{"kind":"version-step","provenance":"source","package":"npm:body-parser","fromFixed":"2.3.0","toFixed":"2.4.0","daysApart":105}]}}],"package":"npm:body-parser"}}