body-parser vulnerabilities

Node.js body parsing middleware

Registry
npm
Latest
2.4.0
License
MIT

4 known advisories

The latest version, 2.4.0, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install body-parser@2.4.0

Is your project on an affected body-parser?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for body-parser

  • HighCVE-2026-111181GHSA-27r3-jxmh-p82823 Oct 2026

    body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body

    Affected
    >=2.0.0 <2.4.0 · <1.20.9
    Fixed in
    1.20.9, 2.4.0
  • LowCVE-2026-12590GHSA-v422-hmwv-36x620 Jul 2026

    body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement

    Affected
    <1.20.6 · >=2.0.0 <2.3.0
    Fixed in
    1.20.6, 2.3.0
  • MediumCVE-2025-13466GHSA-wqch-xfxh-vrr425 Nov 2025

    body-parser is vulnerable to denial of service when url encoding is used

    Affected
    >=2.2.0 <2.2.1
    Fixed in
    2.2.1
  • HighCVE-2024-45590GHSA-qwcr-r2fm-qrc710 Sept 2024

    body-parser vulnerable to denial of service when url encoding is enabled

    Affected
    <1.20.3
    Fixed in
    1.20.3

Is your body-parser version vulnerable?

Which of your client projects still run an old body-parser?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.