fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
Upgrading fastify From 5.1.0 to 5.2.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 5
- fixes
Before you upgrade
Tick each one off as you go- Breaking5.2.0
Security
10 advisories still affect 5.2.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
types: Remove connection property in FastifyRequest
- New
Add hook name within timeout error message
- New
Use
node:prefix to bypass require.cache call for builtins - Fixed
Streamline migrated tests, make migrated the filenames of migrated tests kebab-case
- Breaking
1 other line we could not sort, mostly version bumps
- 5.2.0
types: Use
node:prefix for builtins
54 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.