npm package

body-parser 1.18.3 vulnerabilities, and the version that fixes all of them

body-parser 1.18.3 has 2 known vulnerabilities (1 rated high or critical); 1.20.6 fixes all of them.

npm (opens in a new tab) describes it as “Node.js body parsing middleware”

Known vulnerabilities
2
1 rated high or critical
Released
May 14, 2018
Latest is 2.3.0
Downloads last week
466.9K
Under 1% of body-parser downloads
Licence
MIT
Pulls in
20 packages
Resolved by deps.dev

What to upgrade to

1.20.6 is the closest release with no known vulnerabilities.

  • 1.20.6Upgrade to this

    Fixes all 2 known vulnerabilities. Released Jul 9, 2026.

    No known vulnerabilities
  • 1.20.8

    Newest 1.x release. Released Sep 8, 2026.

    No known vulnerabilities
  • 2.3.0

    Latest release. Released Jun 15, 2026.

    No known vulnerabilities

1.20.6 came out on Jul 9, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for body-parser 1.18.3

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2024-45590 on OSV.dev (opens in a new tab)GHSA-qwcr-r2fm-qrc7EPSS: top 44%

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

    Fixed in 1.20.3. Published Sep 10, 2024.

  2. LowCVE-2026-12590 on OSV.dev (opens in a new tab)GHSA-v422-hmwv-36x6EPSS: top 67%

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

    Fixed in 1.20.6. Published Jul 20, 2026.

Who is still on a vulnerable body-parser

43% of last week’s 148.7M body-parser downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Is body-parser the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly body-parser 1.18.3, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.