npmWorst: High18 advisories
fastify: known vulnerabilities
fastify has 18 reviewed security advisories in the GitHub Advisory Database — 9 high, 7 moderate, 2 low. The most recent was published 2026-10-13. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the fastify versions running across your servers, containers and images, and ranks what to patch first.
How to fix fastify
Upgrade fastify to a release at or above the fixed version shown for each advisory below. For npm:
npm install fastify@5.12.6 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (18)
fastify is vulnerable to header validation bypass via case-sensitive propertyNames
Low 3.7 CWE-178
— Affected: from 5.12.2 up to 5.12.6. Fixed in 5.12.6. Published 2026-10-13. GHSA-389g-gv7q-r4x8 · CVE-2026-107832
fastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responses
Moderate 5.9 CWE-248
— Affected: before 5.12.5. Fixed in 5.12.5. Published 2026-09-16. GHSA-4mh8-r7rc-xpvc · CVE-2026-92081
fastify vulnerable to request body replacement via an async validation result collision
High 8.1 CWE-20
— Affected: before 5.12.2. Fixed in 5.12.2. Published 2026-09-04. GHSA-667r-xxjv-c9mm · CVE-2026-84504
fastify vulnerable to header validation bypass via incomplete schema case normalization
High 7.5 CWE-178
— Affected: before 5.12.2. Fixed in 5.12.2. Published 2026-09-04. GHSA-9q9j-q6p8-xq58 · CVE-2026-84428
fastify vulnerable to request validation bypass via skipped boolean false schemas
High 7.5 CWE-20
— Affected: before 5.12.2. Fixed in 5.12.2. Published 2026-09-04. GHSA-hwr6-493r-vm6h · CVE-2026-84469
fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers
High 7.5 CWE-288
— Affected: from 4.0.0 up to 5.12.2. Fixed in 5.12.2. Published 2026-09-04. GHSA-p68q-wchp-6fh7 · CVE-2026-76169
fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count
Moderate 6.1 CWE-348
— Affected: from 5.8.3 up to 5.12.1. Fixed in 5.12.1. Published 2026-08-18. GHSA-3m5p-2c4r-xxw2 · CVE-2026-16732
fastify vulnerable to schema validation bypass via root primitive coercion mismatch
Moderate 5.4 CWE-20
— Affected: before 5.12.1. Fixed in 5.12.1. Published 2026-08-18. GHSA-w2qp-rph6-63g4 · CVE-2026-18504
Fastify has a Body Schema Validation Bypass via Leading Space in Content-Type Header
High 7.5 CWE-1287
— Affected: from 5.3.2 up to 5.8.5. Fixed in 5.8.5. Published 2026-04-15. GHSA-247c-9743-5963 · CVE-2025-32442
fastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted Connections
Moderate 6.1 CWE-348
— Affected: before 5.8.3. Fixed in 5.8.3. Published 2026-03-23. GHSA-444r-cwp2-x5xf · CVE-2026-3635
Fastify's Missing End Anchor in "subtypeNameReg" Allows Malformed Content-Types to Pass Validation
Moderate 5.3 CWE-185
— Affected: from 5.7.2 up to 5.8.1. Fixed in 5.8.1. Published 2026-03-06. GHSA-573f-x89g-hqp9 · CVE-2026-3419
Fastify's Content-Type header tab character allows body validation bypass
High 7.5 CWE-436
— Affected: before 5.7.2. Fixed in 5.7.2. Published 2026-02-03. GHSA-jx2c-rxcm-jvmq · CVE-2026-25223
Fastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStream
Low 3.7 CWE-770
— Affected: before 5.7.3. Fixed in 5.7.3. Published 2026-02-03. GHSA-mrq3-vjjr-p77c · CVE-2026-25224
Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
High 7.5 CWE-1287
— Affected: from 4.29.0 up to 4.29.1. Fixed in 4.29.1. Published 2025-04-18. GHSA-mg2h-6x62-wpwc · CVE-2025-32442
Fastify: Incorrect Content-Type parsing can lead to CSRF attack
Moderate 4.2 CWE-352
— Affected: from 3.0.0 up to 3.29.4. Fixed in 3.29.4. Published 2022-11-22. GHSA-3fjj-p79j-c9hh · CVE-2022-41919
fastify vulnerable to denial of service via malicious Content-Type
High 7.5 CWE-754
— Affected: from 4.0.0 up to 4.8.1. Fixed in 4.8.1. Published 2022-10-10. GHSA-455w-c45v-86rg · CVE-2022-39288
Denial of service in fastify
Moderate CWE-400
— Affected: before 2.15.1. Fixed in 2.15.1. Published 2020-08-05. GHSA-xw5p-hw6r-2j98 · CVE-2020-8192
Denial of Service vulnerability with large JSON payloads in fastify
High 7.5 CWE-400 CWE-770
— Affected: before 0.38.0. Fixed in 0.38.0. Published 2018-06-07. GHSA-mq6c-fh97-4gwv · CVE-2018-3711
Find fastify across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.