Is fastify 3.21 vulnerable?

npm · 7 releases from 3.21.0 to 3.21.6 · latest fastify is 5.12.8 · checked 2 Nov 2026

Yes: 9 known advisories

Yes. fastify 3.21.6, the last 3.21 release, is affected by 9 known security advisories (4 high, 4 medium, 1 low), including CVE-2026-84504, CVE-2026-84469, CVE-2026-84428. Upgrade to 5.12.5 or later to fix all of them.

Upgrade with:npm install fastify@5.12.5

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting fastify 3.21.6

  • MediumCVE-2026-92081GHSA-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
  • HighCVE-2026-84504GHSA-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
  • HighCVE-2026-84469GHSA-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
  • HighCVE-2026-84428GHSA-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
  • MediumCVE-2026-18504GHSA-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
  • MediumCVE-2026-3635GHSA-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
  • LowCVE-2026-25224GHSA-mrq3-vjjr-p77c2 Feb 2026

    Fastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStream

    Affected
    <5.7.3
    Fixed in
    5.7.3
  • HighCVE-2026-25223GHSA-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
  • MediumCVE-2022-41919GHSA-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

Which of your client projects are still on fastify 3.21?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact fastify version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other fastify versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.