body-parser before 1.20.9 and 2.4.0: one compressed request can crash a Node.js app
Anyone running a Node.js server built on Express or body-parser with the default options.
How to fix it
You haveUpdate to
2.0.0 and later, before 2.4.0→2.4.0before 1.20.9→1.20.9
Check your version
Which version your project hasnpm ls body-parser
Update
In your projectnpm update body-parser npm ls body-parser
npm explain body-parser
npm audit
If you can't update yet
If your app doesn't need compressed request bodies, pass inflate: false to body-parser. Encoded requests then get rejected before any decompression starts.
If npm ls still shows an old version under another package, update that package, or add an "overrides" entry for this one in package.json.