Skip to content

fix: patch all transitive vulnerabilities via pnpm overrides - #50

Merged
nimrod-teich merged 1 commit into
mainfrom
fix/vulnerabilities
Apr 28, 2026
Merged

nimrod-teich merged 1 commit into
mainfrom
fix/vulnerabilities

Conversation

@nimrod-teich

Copy link
Copy Markdown
Contributor

Summary

pnpm audit reported 5 vulnerabilities (1 critical, 4 moderate), all transitive — none of them exposed by direct dependencies that have a patched release. Fixed with scoped pnpm overrides:

Severity Package From To Advisory
Critical protobufjs 7.5.4 ^7.5.5 GHSA-xq3m-2v4x-88gg — RCE via prototype pollution
Moderate @fastify/static 9.1.0 ^9.1.1 GHSA-pr96-94w5-mx2h, GHSA-x428-ghpx-8j92 — path traversal + route guard bypass
Moderate postcss <8.5.10 ^8.5.10 GHSA-qx2v-qp2m-jg93 — XSS via unescaped </style>

Override format: "name@<version": "^version" — only kicks in when a transitive resolver lands on an unpatched version. Direct deps remain free to bump on their own schedule.

Test plan

  • pnpm install succeeds (no peer-conflict warnings).
  • pnpm audit → "No known vulnerabilities found".
  • pnpm typecheck green across all 3 packages.
  • pnpm --filter @info/api test passes 127/128 (the 1 failure in routes-specs.test.ts pre-exists on main and is unrelated).

- protobufjs ^7.5.5 (was 7.5.4): GHSA-xq3m-2v4x-88gg arbitrary code
  execution via prototype pollution. Pulled by @grpc/proto-loader.
- @fastify/static ^9.1.1 (was 9.1.0): GHSA-pr96-94w5-mx2h path
  traversal in directory listing + GHSA-x428-ghpx-8j92 route guard
  bypass via encoded path separators. Pulled by @fastify/swagger-ui.
- postcss ^8.5.10: GHSA-qx2v-qp2m-jg93 XSS via unescaped </style> in
  CSS stringify output. Pulled by next and vite.

Used scoped overrides (`name@<version`) so the bumps only kick in
when a transitive resolver picks an unpatched version, leaving direct
deps free to bump on their own schedule. `pnpm audit` now clean.
@nimrod-teich
nimrod-teich merged commit 43b18d3 into main Apr 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant