fastify@5.7.1 vulnerabilities

Fast and low overhead web framework, for Node.js

  • latest version

    5.7.4

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    23 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the fastify 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
    • H
    Interpretation Conflict

    fastify is an overhead web framework, for Node.js.

    Affected versions of this package are vulnerable to Interpretation Conflict via the Content-Type header processing. An attacker can bypass body validation by appending a tab character (\t) and arbitrary content to the Content-Type header, causing the server to treat the body as the intended type without enforcing validation rules.

    Note: This vulnerability affects all Fastify users who rely on Content-Type-based body validation schemas to enforce data integrity or security constraints.

    How to fix Interpretation Conflict?

    Upgrade fastify to version 5.7.2 or higher.

    <5.7.2
    • M
    Allocation of Resources Without Limits or Throttling

    fastify is an overhead web framework, for Node.js.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the sendWebStream function. An attacker can cause excessive memory consumption by sending a slow or non-reading client request, leading to unbounded buffering and severe performance degradation or process crashes.

    Note: Only applications that return a ReadableStream (or Response with a Web Stream body) via reply.send() are impacted

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade fastify to version 5.7.3 or higher.

    <5.7.3