Repository navigation
fix: patch all transitive vulnerabilities via pnpm overrides - #50
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm auditreported 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:protobufjs@fastify/staticpostcss</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 installsucceeds (no peer-conflict warnings).pnpm audit→ "No known vulnerabilities found".pnpm typecheckgreen across all 3 packages.pnpm --filter @info/api testpasses 127/128 (the 1 failure inroutes-specs.test.tspre-exists on main and is unrelated).