fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
Upgrading fastify From 2.15.3 to 3.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 6
- changes to make
- 0
- advisories fixed
- 5
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Deprecated3.0.0
- Deprecated3.0.0
- Deprecated3.0.0
Security
9 advisories still affect 3.0.0
- Fastify: Incorrect Content-Type parsing can lead to CSRF attack moderate · GHSA-3fjj-p79j-c9hh
- fastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted Connectionsmoderate · GHSA-444r-cwp2-x5xf
- fastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responsesmoderate · GHSA-4mh8-r7rc-xpvc
Upgrading to 5.12.5 clears them.
Release by release
- Breaking
onRoute- The hook will be called asynchronously. The hook is now inherited when registering a new plugin within the same encapsulation scope. Thus, this hook should be registered before registering any plugins. - Breaking
onRegister- Same as the onRoute hook. The only difference is that now the very first call will no longer be the framework itself, but the first registered plugin. - Breaking
Removed
modifyCoreObjectsoption - Deprecated
The old syntax of Fastify v2 without payload is supported but it is deprecated.
- Breaking
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.