fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
4.29.1 is the newest release of 4.x.
In short
1 removed2 deprecated19 new23 fixed47 changed76 internal
- Removed
Remove reference to 'ESLint: manage library execution' command
- Deprecated
Deprecate modifying reply.sent property
- Deprecated
Deprecate variadic listen method (closes #3652)
Security
11 advisories affect 4.0.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
6 more
- Highfastify vulnerable to denial of service via malicious Content-TypeGHSA-455w-c45v-86rg · 11 Oct 2022Fixed in 4.8.1
- 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
- ModerateFastify: Incorrect Content-Type parsing can lead to CSRF attack GHSA-3fjj-p79j-c9hh · 21 Nov 2022Fixed in 4.10.2
- LowFastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStreamGHSA-mrq3-vjjr-p77c · 2 Feb 2026Fixed in 5.7.3
Release note
Fastify v4!
We are finally shipping Fastify v4, you can read more about it at medium.com/@fastifyjs/fastify-v4-ga-59f2103b5f0e
Individual PRs
Checked if error handler is default before setting headers
Set undefined on null input
Set exposeHeadRoutes: true by default
Dropped flatstrt
Typed decorators
Improve error experience
Allow async handler to resolve with undefined
Remove overdue deprecations
Remove content type coercion for response streams
Handle new
avvioerror codesHandle invalid url
Clarification for "Simplify reply sent monitoring (#3072)"
- Deprecated
Deprecate modifying reply.sent property
Fix responding from a hook doc
Deem everything thrown as an error
Encapsulated error handling
Payload validation
Ajv8 by default
Update types for Pino 7
Update to pino rc4
Increase http2SessionTimeout and keepAliveTimeout to 72 seconds
typescript: Allow to pass all pino options
Fastify Type Providers
Adjust existing PRs for the new reply.sent handing
Skip encapsulation of Request and Reply when not needed
Refactor Context constructor and avoid positional arguments
Remove app.use and fix middleware tests
Type Provider Reply Types
Remove .writableEnded fallbacks for node12
Upgrade fast-json-stringify with ajv8
Bad headers characters
Ajv default array coercion
Localhost binds to ipv4 and ipv6
Bump ajv-compiler
Tests should pass on a host with only a single network interface
Call normal 404 handler on unsupported method
Replace pem dependency
Add ajv dep as dev
Add coverage reporting per OS type
Fix coverage workflows
Remove Coveralls (closes #3720)
- Removed
Remove reference to 'ESLint: manage library execution' command
Handle aborted requests
Drop @typescript-eslint/no-misused-promises
- Deprecated
Deprecate variadic listen method (closes #3652)
Feat (types): add complete
fastify.listen()typescript definitionsResponse type of serialize method in FastifyReply interface
Fixed Node.js v18/master support
Fix avvio plugin timeout for 0
Update Ecosystem.md
Update Ecosystem.md - Add fastify-impressions to the list
Improve parser example
Automerge major updates
Fix
Allow custom Context Config types for hooks'
requestpropertiesSet reply's default charset to utf8
Bugfix/streamline fastify request to be generic
Reply trailers support
reply: Remove content-length when Transfer-Encoding is added
Remove duplicate require(http-errors)
Remove server.unref from tests
allowUnsafeRegex in options
Updated benchmarks to v4 and Node v16
Fix type providers package names
Add SQLite as supported database
Update Routes.md
content-type: Return undefined when content-type is ''
Update fastify-error dependency
Add Promise to 404 handler return type
Support rc in version checks
Replaced semver check code per recommendation
Update TypeScript.md
Fix link to OpenJS Foundation Image in Readme.md
Run automerge in ci only if we have a pull-request or got a pr-number provided
Redirect Security Responsible Disclosure Badge in Readme.md to SECURITY.md
JSDoc in Get Started Section
All hooks should handle undefined error
Move querystring parsing to the router
Add constraint strategies outside Fastify constructor
Http version check
Fix getDefaultRoute type
Remove mentions of
make-promises-safebecause it is only needed with Node <=14Add ignoreDuplicateSlashes option
Improve schema.response validation error message
Handler return reply type
Make the root pluginName 'fastify'
Preserve chain of proptotypes in multiple nested plugins
types: Fix default type provider typings
Add hasPlugin method
Use new Node.js' connection closing API if available
2XX is a supported status code for the response
Allow default as status code
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.