fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
Upgrading fastify From 4.28.0 to 5.12.5
40 releases in betweennotes for 37
Counted from 37 of 40 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking5.2.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
Security
1 advisory still affects 5.12.5
- fastify is vulnerable to header validation bypass via case-sensitive propertyNameslow · GHSA-389g-gv7q-r4x8
Upgrading to 5.12.6 clears it.
Fixes 9 advisories affecting 4.28.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
- fastify vulnerable to header validation bypass via incomplete schema case normalizationhigh · GHSA-9q9j-q6p8-xq58
- fastify vulnerable to request validation bypass via skipped boolean false schemashigh · GHSA-hwr6-493r-vm6h
- Fastify's Content-Type header tab character allows body validation bypasshigh · GHSA-jx2c-rxcm-jvmq
- Fastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStreamlow · GHSA-mrq3-vjjr-p77c
- fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlershigh · GHSA-p68q-wchp-6fh7
- fastify vulnerable to schema validation bypass via root primitive coercion mismatchmoderate · GHSA-w2qp-rph6-63g4
- 5.12.5
- 5.12.2
- 5.12.2
- 5.12.2
- 5.12.2
- 5.12.1
- 5.12.1
- 5.8.5
This fixes CVE CVE-2026-33806 github.com/fastify/fastify/security/advisories/….
- 5.8.3
This fixes CVE CVE-2026-3635 github.com/fastify/fastify/security/advisories/….
- 5.8.1
Fixes "Missing End Anchor in "subtypeNameReg" Allows Malformed Content-Types to Pass Validation": github.com/fastify/fastify/security/advisories/….
Release by release
- Security
- New
Reduce content-type parser overhead
- New
Avoid redundant request-part reads during validation
5.12.3 – 5.12.42 releases, nothing new or fixed; 1 without a note
- Security
- Security
- Security
- Security
- Security
- Security
- Fixed
Run preClose hook exactly once per declaring instance
- Fixed
Report canonical route url for hidden prefix slash route
- New
Add
Reply.prototype.mediaType - Fixed
Remove raw response headers
- Fixed
content-type: Return
undefinedfor invalid media types
- New
- Fixed
Clear trailer state when removing all trailers
- Fixed
Pass null instead of undefined to requestCompleted on success
- Fixed
Recognize constructor-assigned built-in properties as decorator …
- Fixed
Reset lastIndex before testing global/sticky content-type RegExp parsers
- Fixed
- Fixed
Fix fastify version in
fastify.js
- Fixed
- Fixed
Add http method override warning
- Fixed
types: Allow explicit http2: false in server options
- Fixed
Do not force close in-flight connections when forceCloseConnections is 'idle'
- Fixed
10 other lines we could not sort, mostly version bumps
- 5.9.0
Bumped v5.9.0
- 5.8.3
Updated Plugins-Guide.md; Changed "fastify" to "instance" during plugin registration to showcase that it's added as a child
- 5.2.2
Update broken link to N|Solid
- 5.2.0
types: Use
node:prefix for builtins - 5.1.0
types: Make plugin options required if they have any defined props
- 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
596 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.