Advisories · Node.js & Next.js
CVE-2024-45590
High
CVSS 7.5
body-parser denial of service
Disclosed 2024 · Last reviewed 2 Dec 2026
A URL-encoded body could make body-parser spend excessive resources.
What happened
The parser handled a crafted parameter inefficiently.
Affected and patched versions
- Affected
- body-parser before 1.20.3.
- Patched
- body-parser 1.20.3 and later.
How to check your server
Check
npm ls body-parser
How to fix and harden
- Upgrade body-parser to 1.20.3 or later. Express pulls it in transitively.
- Keep a body size limit in the Express json and urlencoded settings.
Fix
npm ls body-parser
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON