Skip to content

GHSA-qwcr-r2fm-qrc7 CVE-2024-45590

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

High npm
Severity
0.0 / 10
High · CVSS 4.0
Exploit chance (EPSS)
0.82%
Chance of exploitation in the next 30 days. Higher than 57.39% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-405 Asymmetric Resource Consumption (Amplification)
Fix
1.20.3
Upgrade body-parser to this version or later

Description

Impact

body-parser <1.20.3 is vulnerable to denial of service when url encoding is enabled. A malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service.

Patches

this issue is patched in 1.20.3

References

Affected versions

npm

PackageVulnerableFixed in
body-parser
< 1.20.3
1.20.3

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

body-parser npm → 1.20.3

npm
npm install body-parser@1.20.3
yarn
yarn add body-parser@1.20.3
pnpm
pnpm add body-parser@1.20.3

Severity breakdown

CVSS 4.0 0.0

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality (vulnerable system)
None
Integrity (vulnerable system)
None
Availability (vulnerable system)
High
Confidentiality (subsequent systems)
None
Integrity (subsequent systems)
None
Availability (subsequent systems)
None

CVSS 3.1 7.5

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Weakness

CWE-405: Asymmetric Resource Consumption (Amplification)

The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric."

How to prevent it
  • Architecture and Design: An application must make resources available to a client commensurate with the client's access level.
  • Architecture and Design: An application must, at all times, keep track of allocated resources and meter their usage appropriately.
  • System Configuration: Consider disabling resource-intensive algorithms on the server side, such as Diffie-Hellman key exchange.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-27r3-jxmh-p828
body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
High Also affects body-parser
GHSA-v422-hmwv-36x6
body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
Medium Also affects body-parser
GHSA-wqch-xfxh-vrr4
body-parser is vulnerable to denial of service when url encoding is used
Medium Also affects body-parser
GHSA-4vqv-7265-gm2w
pypdf has possible large memory usage for exceptions in strict mode
High Same weakness, CWE-405
GHSA-g3hv-75wg-m249
minimatch has potential denial of service via globparts amplification
Medium Same weakness, CWE-405
GHSA-9fm3-97px-rjf6
undici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG buffering
High Same weakness, CWE-405
GHSA-7hqp-7c5m-4vq6
Microsoft Security Advisory CVE-2026-96960 - .NET and Visual Studio Denial of Service Vulnerability
High Same weakness, CWE-405
GO-2026-6607
Reject malformed ECH outer extension references in crypto/tls
High Same weakness, CWE-405
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor