fastify vulnerabilities

Fast and low overhead web framework, for Node.js

Registry
npm
Latest
5.12.7
License
MIT

18 known advisories

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

Update to the latest version:npm install fastify@5.12.7

Security advisories for fastify

  • LowGHSA-389g-gv7q-r4x822 Oct 2026

    fastify is vulnerable to header validation bypass via case-sensitive propertyNames

    Affected
    >=5.12.2 <5.12.6
    Fixed in
    5.12.6
  • MediumGHSA-4mh8-r7rc-xpvc30 Sept 2026

    fastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responses

    Affected
    <5.12.5
    Fixed in
    5.12.5
  • HighGHSA-667r-xxjv-c9mm30 Sept 2026

    fastify vulnerable to request body replacement via an async validation result collision

    Affected
    <5.12.2
    Fixed in
    5.12.2
  • HighGHSA-p68q-wchp-6fh730 Sept 2026

    fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers

    Affected
    >=4.0.0 <5.12.2
    Fixed in
    5.12.2
  • HighGHSA-hwr6-493r-vm6h30 Sept 2026

    fastify vulnerable to request validation bypass via skipped boolean false schemas

    Affected
    <5.12.2
    Fixed in
    5.12.2
  • HighGHSA-9q9j-q6p8-xq5830 Sept 2026

    fastify vulnerable to header validation bypass via incomplete schema case normalization

    Affected
    <5.12.2
    Fixed in
    5.12.2
  • MediumGHSA-3m5p-2c4r-xxw22 Sept 2026

    fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count

    Affected
    >=5.8.3 <5.12.1
    Fixed in
    5.12.1
  • MediumGHSA-w2qp-rph6-63g42 Sept 2026

    fastify vulnerable to schema validation bypass via root primitive coercion mismatch

    Affected
    <5.12.1
    Fixed in
    5.12.1
  • HighGHSA-247c-9743-596315 Apr 2026

    Fastify has a Body Schema Validation Bypass via Leading Space in Content-Type Header

    Affected
    >=5.3.2 <5.8.5
    Fixed in
    5.8.5
  • MediumGHSA-444r-cwp2-x5xf25 Mar 2026

    fastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted Connections

    Affected
    <5.8.3
    Fixed in
    5.8.3
  • MediumGHSA-573f-x89g-hqp95 Mar 2026

    Fastify's Missing End Anchor in "subtypeNameReg" Allows Malformed Content-Types to Pass Validation

    Affected
    >=5.7.2 <5.8.1
    Fixed in
    5.8.1
  • LowGHSA-mrq3-vjjr-p77c2 Feb 2026

    Fastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStream

    Affected
    <5.7.3
    Fixed in
    5.7.3
  • HighGHSA-jx2c-rxcm-jvmq2 Feb 2026

    Fastify's Content-Type header tab character allows body validation bypass

    Affected
    <5.7.2
    Fixed in
    5.7.2
  • HighGHSA-mg2h-6x62-wpwc18 Apr 2025

    Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass

    Affected
    >=5.0.0 <5.3.2 · >=4.29.0 <4.29.1
    Fixed in
    4.29.1, 5.3.2
  • MediumGHSA-3fjj-p79j-c9hh21 Nov 2022

    Fastify: Incorrect Content-Type parsing can lead to CSRF attack

    Affected
    >=4.0.0 <4.10.2 · >=3.0.0 <3.29.4
    Fixed in
    3.29.4, 4.10.2
  • HighGHSA-455w-c45v-86rg11 Oct 2022

    fastify vulnerable to denial of service via malicious Content-Type

    Affected
    >=4.0.0 <4.8.1
    Fixed in
    4.8.1
  • MediumGHSA-xw5p-hw6r-2j985 Aug 2020

    Denial of service in fastify

    Affected
    <2.15.1
    Fixed in
    2.15.1
  • HighGHSA-mq6c-fh97-4gwv18 Jul 2018

    Denial of Service vulnerability with large JSON payloads in fastify

    Affected
    <0.38.0
    Fixed in
    0.38.0

Which of your client projects still run an old fastify?

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.