Packages

fastify

5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed

Your version

5.12.8

Latest2 Nov 2026Where it was published

Summary· from the note as AI read it

Security fixUpgrade: this release fixes a security issue.

Security

  • Upgrade to get the fix for GHSA-3qgw-9275-xf8w.

New

  • [Backport 5.x] feat: add routerOptions.compile to use find-my-way compiler mode
  • [Backport 5.x] feat(hooks): support disposables in onClose hook
  • [Backport 5.x] perf(request): hoist port regex to module level

In short

1 security2 new1 faster7 fixed8 internal

  • Security

    Fix for GHSA-3qgw-9275-xf8w

Release note

Security Release

What's Changed

  • types: Restore this context in route shorthand hooks

  • reply: Send stream trailers after the stream actually finishes

  • Add routerOptions.compile to use find-my-way compiler mode

  • Clamp error statusCode between 400 and 599 with 500 fallback

  • Contain synchronous throws from custom content type parsers

  • hooks: Support disposables in onClose hook

  • types: Allow socket path strings in addresses

  • types: Add logSerializers to RouteShorthandOptions

  • request: Hoist port regex to module level

  • decorators: Evaluate instance getters once in getDecorator

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.