fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
Upgrading fastify From 4.29.1 to 5.0.0
1 release in betweenevery note read
- 4
- changes to make
- 0
- advisories fixed
- 21
- new
- 15
- fixes
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
Security
10 advisories still affect 5.0.0
- 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
- fastify vulnerable to request body replacement via an async validation result collisionhigh · GHSA-667r-xxjv-c9mm
Upgrading to 5.12.5 clears them.
Release by release
- Breaking
lib: Drop setDefaultRoute and getDefaultRoute methods
- Breaking
Add req.hostname and req.port
- Breaking
Remove deprecated variadic listen
- Breaking
Remove json shorthand
- Breaking
5 other lines we could not sort, mostly version bumps
- 5.0.0
Sync next-branch
- 5.0.0
Next: Disallow
decorate('name', null)in the types - 5.0.0
Change request id header default value to false
- 5.0.0
types: Remove variadic listen types
- 5.0.0
types: Remove nonexistant done parameter from onRegister
71 internal lines (docs, tests, tooling) left out.
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.