Commit d4bc6e9
committed
fix(deps): pin the remaining vulnerable transitive dependencies
Roughly 70% of the advisories still open after #736 came from four transitive
packages, each reached through a small number of paths, so pinning them resolves
the advisories without moving any example's own dependencies.
The pins are scoped per major. A bare-name pnpm override replaces every version
of a package regardless of what the consumer asked for, which would force
unrelated consumers across a major: an unscoped ws pin dropped
@solana/rpc-subscriptions-channel-websocket from ws 8.21.1 to 7.5.13, and
base-x 4.x and 5.x down to 3.x. Scoping patches each affected major in place and
leaves clean majors alone:
js-yaml ^3.15.2 / ^4.3.2 via mocha
ws ^6.2.6 / ^7.5.11 / ^8.21.3 via jayson, rpc-subscriptions, others
bn.js ^4.12.3 / ^5.2.3 via @anchor-lang/core and web3.js
base-x ^3.0.11 / ^4.0.1 via bs58, 5.x untouched
uuid is scoped to the 8.x and 9.x paths, which have no in-major patch and move
to 11. The 14.x copy under rpc-websockets was never affected and is left alone;
#736's unscoped uuid pin had been downgrading it.
Drop the diff pin from #736 entirely. diff has no Dependabot advisory against
it, so the pin only forced consumers across majors for no benefit.
toml and serialize-javascript stay unscoped deliberately: only one major of each
is present and neither has an in-major patched release, so moving major is the
only way to resolve those advisories.
Bump axios to ^1.18.0 in the three compression examples, where it is a direct
dependency. The axios 0.x copy under @metaplex-foundation/js is untouched: that
tree needs the example ported off unmaintained packages, not a version bump.
Lockfiles are regenerated with pnpm install --lockfile-only, so no other
resolution moves. Verified with pnpm install --frozen-lockfile plus
pnpm exec tsc --noEmit across all 107 projects, which matches main exactly at
57 pass and 0 install failures with no regressions, the root --ignore-workspace
install, and prettier.1 parent 313b0ab commit d4bc6e9
215 files changed
Lines changed: 5690 additions & 4016 deletions
File tree
- basics
- account-data
- anchor
- native
- pinocchio
- checking-accounts
- anchor
- asm
- native
- pinocchio
- close-account
- anchor
- native
- pinocchio
- counter
- anchor
- native
- pinocchio
- create-account
- anchor
- asm
- native
- pinocchio
- cross-program-invocation
- anchor
- native
- pinocchio
- favorites
- anchor
- native
- pinocchio
- hello-solana
- anchor
- asm
- native
- pinocchio
- pda-rent-payer
- anchor
- native
- pinocchio
- processing-instructions
- anchor
- native
- pinocchio
- program-derived-addresses
- anchor
- native
- pinocchio
- realloc
- anchor
- native
- pinocchio
- repository-layout
- anchor
- native
- pinocchio
- transfer-sol
- anchor
- asm
- native
- pinocchio
- compression
- cnft-burn/anchor
- cnft-vault/anchor
- cutils/anchor
- cryptography
- bls12-381/pinocchio
- bn254/pinocchio
- games
- gacha/pinocchio
- world-cup/pinocchio
- oracles/pyth/anchor
- tokens
- create-token
- anchor
- native
- pinocchio
- escrow
- anchor
- native
- pinocchio
- external-delegate-token-master/anchor
- merkle-tree-token-claimer/anchor
- nft-operations
- anchor
- pinocchio
- pda-mint-authority
- anchor
- native
- pinocchio
- token-2022
- basics/anchor
- cpi-guard/anchor
- default-account-state
- anchor
- native
- pinocchio
- group/anchor
- immutable-owner
- anchor
- pinocchio
- interest-bearing
- anchor
- pinocchio
- memo-transfer/anchor
- metadata/anchor
- mint-close-authority
- anchor
- native
- pinocchio
- multiple-extensions
- native
- pinocchio
- nft-meta-data-pointer
- anchor
- app
- non-transferable
- anchor
- native
- pinocchio
- permanent-delegate
- anchor
- pinocchio
- transfer-fee
- anchor
- native
- pinocchio
- transfer-hook
- account-data-as-seed/anchor
- allow-block-list-token
- block-list/pinocchio
- counter/anchor
- hello-world/anchor
- transfer-cost/anchor
- transfer-switch/anchor
- token-fundraiser/anchor
- token-swap/anchor
- transfer-tokens
- anchor
- native
- pinocchio
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments