Skip to content

Commit db50e27

Browse files
raonitimolindesvard
authored andcommitted
fix(api): bump fastify 5.6→5.8 and @trpc/{server,client} 11.6→11.16
Addresses two HIGH-severity CVEs found via Trivy scan on a self-hosted deployment: - fastify 5.6.1 → 5.8.5: fixes CVE-2026-25223 (validation bypass via malformed Content-Type header). Attacker can bypass Fastify's request schema validation by crafting the Content-Type header, potentially sending malformed payloads to validated endpoints like /track. - @trpc/server 11.6.0 → 11.16.0: fixes CVE-2025-68130 (prototype pollution in experimental_nextAppDirCaller). Lower risk since openpanel may not use that API, but the bump is semver-compatible and brings other stability fixes. Also aligns @trpc/client to 11.16.0 across all packages (was 11.6.0 in packages/trpc and apps/start) so client and server stay on the same minor — mismatched versions can cause subtle serialization bugs. Both are ^-ranged deps — pnpm update resolves to latest compatible. Verified: `pnpm --filter @openpanel/api build` succeeds.
1 parent bc5fdf1 commit db50e27

4 files changed

Lines changed: 60 additions & 101 deletions

File tree

apps/api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
"@openpanel/redis": "workspace:*",
4141
"@openpanel/trpc": "workspace:*",
4242
"@openpanel/validation": "workspace:*",
43-
"@trpc/server": "^11.6.0",
43+
"@trpc/server": "^11.16.0",
4444
"fast-json-stable-hash": "^1.0.3",
45-
"fastify": "^5.6.1",
45+
"fastify": "^5.8.5",
4646
"fastify-metrics": "^12.1.0",
4747
"fastify-raw-body": "^5.0.0",
4848
"fastify-zod-openapi": "^5.6.1",

apps/start/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
"@tanstack/react-virtual": "^3.13.12",
8383
"@tanstack/router-plugin": "^1.132.56",
8484
"@tanstack/store": "^0.8.0",
85-
"@trpc/client": "^11.6.0",
85+
"@trpc/client": "^11.16.0",
8686
"@trpc/react-query": "^11.6.0",
87-
"@trpc/server": "^11.6.0",
87+
"@trpc/server": "^11.16.0",
8888
"@trpc/tanstack-react-query": "^11.6.0",
8989
"@types/d3": "^7.4.3",
9090
"bind-event-listener": "^3.0.0",

packages/trpc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"@openpanel/validation": "workspace:*",
2121
"@openpanel/queue": "workspace:*",
2222
"@trpc-limiter/redis": "^0.0.2",
23-
"@trpc/client": "^11.6.0",
24-
"@trpc/server": "^11.6.0",
23+
"@trpc/client": "^11.16.0",
24+
"@trpc/server": "^11.16.0",
2525
"date-fns": "^3.3.1",
2626
"mathjs": "^12.3.2",
2727
"prisma-error-enum": "^0.1.3",

pnpm-lock.yaml

Lines changed: 54 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)