fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
4.29.1 is the newest release of 4.x.
In short
1 removed7 new4 fixed10 changed19 internal
- Removed
Remove double validation of onReady-hook
Security
9 advisories affect 4.18.0; 5.12.5 fixes them
- Highfastify vulnerable to request body replacement via an async validation result collisionGHSA-667r-xxjv-c9mm · 30 Sep 2026Fixed in 5.12.2
- Highfastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlersGHSA-p68q-wchp-6fh7 · 30 Sep 2026Fixed in 5.12.2
- Highfastify vulnerable to request validation bypass via skipped boolean false schemasGHSA-hwr6-493r-vm6h · 30 Sep 2026Fixed in 5.12.2
- Highfastify vulnerable to header validation bypass via incomplete schema case normalizationGHSA-9q9j-q6p8-xq58 · 30 Sep 2026Fixed in 5.12.2
- HighFastify's Content-Type header tab character allows body validation bypassGHSA-jx2c-rxcm-jvmq · 2 Feb 2026Fixed in 5.7.2
4 more
- Moderatefastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responsesGHSA-4mh8-r7rc-xpvc · 30 Sep 2026Fixed in 5.12.5
- Moderatefastify vulnerable to schema validation bypass via root primitive coercion mismatchGHSA-w2qp-rph6-63g4 · 2 Sep 2026Fixed in 5.12.1
- Moderatefastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted ConnectionsGHSA-444r-cwp2-x5xf · 25 Mar 2026Fixed in 5.8.3
- LowFastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStreamGHSA-mrq3-vjjr-p77c · 2 Feb 2026Fixed in 5.7.3
Release note
What's Changed
Update GOVERNANCE.md
Maintain custom response schema
Updates to docs and types regarding the
resserializerAdd mention to default error handler on reply send
Add listeningOrigin fastify immutable instance property
Support send typedarray objects
Allow lowercase methods when registering routes
Fix lowercase HTTP methods type
Add missing trailer method definitions
benchmark:parser script
Remove debug logging for URL rewrite
Async validation support
Hotfix dev dep
Rename types/tsconfig.json to types/tsconfig.eslint.json to avoid hoisting by vscode
Update removeHeader type to be FastifyReply
Making Vercel Serverless docs easier to use
Body reader to use statusCode from stream error, if available
workflow(benchmark): update node version
Add sync-next workflow
- Removed
Remove double validation of onReady-hook
Fix broken CI
Reset listening state for each secondary server
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.