diff options
| author | Adam Soltys <[email protected]> | 2026-08-22 08:43:38 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-22 08:43:53 -0700 |
| commit | d6adcee27747ad92b8ce4de1350c692f5032dfdd (patch) | |
| tree | 872017ff2811dccd65d05945059c4fb26af60b8d /lib/app.ts | |
| parent | 7c25b8384cb377728f3b4d8795345483264896d9 (diff) | |
| download | coinos-server-d6adcee27747ad92b8ce4de1350c692f5032dfdd.tar.gz coinos-server-d6adcee27747ad92b8ce4de1350c692f5032dfdd.zip | |
deps: upgrade fastify v4 to v5 line to fix dependabot alerts
Fastify 4.x is EOL with no backported fixes; all six open alerts
(critical http-proxy header stripping, static path traversal + auth
bypass, fastify body-validation bypass / host spoofing / DoS) are only
patched on the v5 line. Bump fastify to 5.12.0 and all @fastify/*
plugins to their v5-compatible majors, and migrate the two options v5
deprecated (disableRequestLogging -> logController, maxParamLength ->
routerOptions).
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'lib/app.ts')
| -rw-r--r-- | lib/app.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,8 +15,8 @@ import { jwtStrategy } from "$lib/auth"; const app = fastify({ logger: true, - disableRequestLogging: true, - maxParamLength: 500, + logController: new fastify.LogController({ disableRequestLogging: true }), + routerOptions: { maxParamLength: 500 }, }); const reqLogger = pino(pino.destination("req")); |
