org.webjars.npm:body-parser@1.20.5

  • latest version

    2.3.0

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    11 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:body-parser package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to invalid limit option handling in normalizeOptions in lib/utils.js. An attacker can force oversized request bodies through by supplying an application configuration value for limit that parses to null, such as an unparseable string or NaN. When an app relies on limit to cap body size, the parser skips enforcement and accepts arbitrarily large payloads, driving excessive memory and CPU usage and degrading or crashing the service.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.webjars.npm:body-parser to version 1.20.6, 2.3.0 or higher.

    [,1.20.6)[2.0.0-beta.1,2.3.0)
    • M
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to inefficient handling of URL-encoded bodies with a very large number of parameters. An attacker can cause elevated CPU and memory usage by sending payloads containing thousands of parameters within the default request size limit, potentially resulting in service slowdown or partial outages under sustained malicious traffic.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.webjars.npm:body-parser to version 2.3.0 or higher.

    [,2.3.0)
    • H
    Asymmetric Resource Consumption (Amplification)

    Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) via the extendedparser and urlencoded functions when the URL encoding process is enabled. An attacker can flood the server with a large number of specially crafted requests.

    How to fix Asymmetric Resource Consumption (Amplification)?

    Upgrade org.webjars.npm:body-parser to version 2.2.0 or higher.

    [,2.2.0)