aboutsummaryrefslogtreecommitdiffstats
path: root/lib/app.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-22 08:43:38 -0700
committerAdam Soltys <[email protected]>2026-08-22 08:43:53 -0700
commitd6adcee27747ad92b8ce4de1350c692f5032dfdd (patch)
tree872017ff2811dccd65d05945059c4fb26af60b8d /lib/app.ts
parent7c25b8384cb377728f3b4d8795345483264896d9 (diff)
downloadcoinos-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.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/app.ts b/lib/app.ts
index 3b00c702..d2949e61 100644
--- a/lib/app.ts
+++ b/lib/app.ts
@@ -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"));