fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
Upgrading fastify From 3.1.1 to 3.2.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 5
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Deprecated3.2.0
Security
9 advisories still affect 3.2.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
- Deprecated
Use fastify-warning for handling deprecation warnings #2354
- New
Added validationError property to request - #2422
- New
Add routePath in onRoute hook - #2451
- New
Add hook onTimeout - #2457
- Deprecated
6 other lines we could not sort, mostly version bumps
- 3.2.0
add: route-level custom Error Handlers - #2427
- 3.2.0
Update Routes.md - #2424
- 3.2.0
Improve and expand docs around error handling - #2425
- 3.2.0
Improve server types - #2449
- 3.2.0
Move headers to be a getter on Request - #2426
- 3.2.0
Refactor override - #2432
1 internal line (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.