fastify
5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed
5.12.8 is the newest release of 5.x.
In short
2 new3 faster16 fixed1 changed44 internal
Security
7 advisories affect 5.9.0; 5.12.5 fixes them
- Highfastify vulnerable to request body replacement via an async validation result collisionGHSA-667r-xxjv-c9mm · 30 Sep 2026Fixed in 5.12.2
- Highfastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlersGHSA-p68q-wchp-6fh7 · 30 Sep 2026Fixed in 5.12.2
- Highfastify vulnerable to request validation bypass via skipped boolean false schemasGHSA-hwr6-493r-vm6h · 30 Sep 2026Fixed in 5.12.2
- Highfastify vulnerable to header validation bypass via incomplete schema case normalizationGHSA-9q9j-q6p8-xq58 · 30 Sep 2026Fixed in 5.12.2
- Moderatefastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responsesGHSA-4mh8-r7rc-xpvc · 30 Sep 2026Fixed in 5.12.5
2 more
- Moderatefastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-countGHSA-3m5p-2c4r-xxw2 · 2 Sep 2026Fixed in 5.12.1
- Moderatefastify vulnerable to schema validation bypass via root primitive coercion mismatchGHSA-w2qp-rph6-63g4 · 2 Sep 2026Fixed in 5.12.1
Release note
What's Changed
Add request.mediaType
Prevent duplicate res.end in sendTrailer with sync callbacks
Avoid duplicate closeIdleConnections call on native servers
Error.code not present on some routing errors
Correct isCustomSerializerCompiler flag check
Validate invalid route logLevel at registration
Use ContentType parser for response schema lookup
types: Allow request.getValidationFunction() to return undefined
Do not trust forwarded host/proto when socket is missing
Defer ContentType parsing in getSchemaSerializer until needed
Cache parsed ContentType objects in ContentTypeParser
Add typeof guard before toString.call in send and onSendEnd
Enable diagnostics tracking for async error handlers
Ignore duplicate trailer completions
Add support of onMaxParamLength
Include hint and docs URL in FSTWRN004 warning message
Chunk large HTTP/2 buffer replies
Replace
AssertionErrorwithFST_ERR_PLUGIN_DEPENDENCY_NOT_REGISTEREDincheckDependenciesClear socket._meta after response to prevent keep-alive leaks
Avoid double slash when joining nested prefixes
hasRequestDecorator/hasReplyDecorator misses constructor-assigned built-in properties
Bumped v5.9.0
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.