fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
Upgrading fastify From 3.29.5 to 4.0.0
1 release in betweenevery note read
- 3
- changes to make
- 0
- advisories fixed
- 19
- new
- 23
- fixes
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Deprecated4.0.0
- Deprecated4.0.0
Security
11 advisories still affect 4.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 malicious Content-Typehigh · GHSA-455w-c45v-86rg
Upgrading to 5.12.5 clears them.
Release by release
- Breaking
Remove reference to 'ESLint: manage library execution' command
- Deprecated
Deprecate modifying reply.sent property
- Deprecated
Deprecate variadic listen method (closes #3652)
- New
Set undefined on null input
- Breaking
47 other lines we could not sort, mostly version bumps
- 4.0.0
Checked if error handler is default before setting headers
- 4.0.0
Set exposeHeadRoutes: true by default
- 4.0.0
Dropped flatstrt
- 4.0.0
Typed decorators
- 4.0.0
Remove overdue deprecations
- 4.0.0
Remove content type coercion for response streams
- 4.0.0
Clarification for "Simplify reply sent monitoring (#3072)"
- 4.0.0
Deem everything thrown as an error
- 4.0.0
Encapsulated error handling
- 4.0.0
Payload validation
76 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.