Repository navigation
chore(deps): bump vulnerable dependencies in example lockfiles - #141
Merged
Merged
Conversation
Bump npm, pnpm and Cargo lockfiles across the examples to versions that fix critical and high advisories, within the existing semver ranges. Bump next to 14.2.35 in entropy/growing/app and price_feeds/fuel/fetch-and-update-btc-price. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on rustc 1.75 openssl 0.10.81 and openssl-sys 0.9.117 need rustc 1.80, but lazer/publisher pins rustc 1.75.0. Use openssl 0.10.78 and openssl-sys 0.9.114, the newest versions that support 1.75 and still fix the advisories. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aditya520
approved these changes
Oct 26, 2026
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
This PR bumps the dependencies in the example lockfiles to versions that fix critical and high advisories. Every bump stays inside the semver range already in each
package.jsonorCargo.toml. The only manifest changes arenext14.2.x → 14.2.35 inentropy/growing/appandprice_feeds/fuel/fetch-and-update-btc-price.How the lockfiles were changed:
npm audit fix --package-lock-only(without--force), thennpm update <pkg>on the vulnerable packages that were still in range.pnpm update --lockfile-only <pkg>(pnpm 10; the lockfile format is still9.0).cargo update -p <crate>forbytes,openssl,tracing-subscriber,crossbeam-channel,crossbeam-epoch,ring0.17.x,tarandrkyv0.7.45 → 0.7.46.lazer/publisherpins rustc 1.75.0 in itsrust-toolchainfile.opensslthere goes to 0.10.78 andopenssl-systo 0.9.114. These are the newest versions that build on rustc 1.75 (openssl0.10.79 and later need rustc 1.80). 0.10.78 fixes the advisories up to 0.10.72, but it still has GHSA-xp3w-r5p5-63rr (high, fixed in 0.10.79) and two moderate advisories. See "Advisories left open".@pythnetwork/pyth-fuel-jsstays at its current version in both Fuel examples. Version 1.1.0 pulls infuels0.101, which breakssdk_js_usage(Provider.createwas removed).Lockfiles that were out of sync on main
On
main,npm cifails inentropy/growing/app,price_feeds/starknet/sdk_js_usageandprice_feeds/starknet/send_usd/client, because their lockfiles no longer matchpackage.json. This PR regenerates those lockfiles, andnpm cinow passes in all three.Results (osv-scanner)
osv-scanner scan source -r ., before and after:entropy/coin_flip/app/package-lock.jsonentropy/growing/app/package-lock.jsonlazer/js/pnpm-lock.yamllazer/publisher/Cargo.locklazer/solana-anchor/Cargo.locklazer/solana-anchor/pnpm-lock.yamllazer/solana/Cargo.locklazer/stellar/Cargo.locklazer/stellar/client/package-lock.jsonprice_feeds/aptos/mint_nft/app/package-lock.jsonprice_feeds/evm/chainlink_migration/package-lock.jsonprice_feeds/evm/my_first_pyth_app/app/package-lock.jsonprice_feeds/evm/oracle_swap/app/package-lock.jsonprice_feeds/fuel/fetch-and-update-btc-price/package-lock.jsonprice_feeds/fuel/sdk_js_usage/package-lock.jsonprice_feeds/solana/send_usd/app/package-lock.jsonprice_feeds/solana/send_usd/program/Cargo.lockprice_feeds/starknet/sdk_js_usage/package-lock.jsonprice_feeds/starknet/send_usd/client/package-lock.jsonprice_feeds/ton/sdk_js_usage/package-lock.jsonprice_feeds/ton/send_usd/package-lock.jsonpro/frontend-jwt-auth/pnpm-lock.yaml¹ osv-scanner reported 8 and 0 when
opensslwas at 0.10.81. The later pin to 0.10.78 reopens threeopenssladvisories (one high), per the OSV database. osv-scanner was not rerun after the pin.Advisories left open
Fix needs a major bump of a direct dependency or a chain SDK
next14.2.35: the remaining advisories are fixed only in 15.5.x or later.react-scripts(CRA) in the aptos, oracle_swap and solana apps:svgo,nth-check,postcss7,webpack-dev-server,webpack-dev-middleware,serialize-javascript,node-forge. CRA is unmaintained, so these have no in-range fix.web31.x and@truffle/hdwallet-provider(coin_flip, oracle_swap):request/form-data2.3.3,tar4 (viaswarm-js),secp256k14.0.3,semver5.4.1.zod3 → 4,uuid→ 11,protobufjs6 → 7 in older trees,toml(via@stellar/stellar-sdkand fuels),tmp0.0.33,@ton/blueprint,@fuels/connectors,fuels/@pythnetwork/pyth-fuel-js.ed25519-dalek1 → 2,curve25519-dalek3 → 4,quinn-proto0.10 → 0.11,rustls0.21 /rustls-webpki0.101 → 0.103,webpki-roots,h20.3 → 0.4 andring0.16 (all from Solana 1.18 inlazer/solana), pluscrypto-bigint0.5 → 0.7 (lazer/stellar).rkyv0.8.17 is needed only for RUSTSEC-2026-0235.Fix needs a newer rustc than the pinned toolchain
openssl0.10.78 inlazer/publisher: GHSA-xp3w-r5p5-63rr (high, fixed in 0.10.79), GHSA-xv59-967r-8726 (moderate, fixed in 0.10.79) and GHSA-phqj-4mhp-q6mq (moderate, fixed in 0.10.80).openssl0.10.79 and later need rustc 1.80, andlazer/publisher/rust-toolchainpins rustc 1.75.0. Fixing these needs a toolchain bump in that example.Fixed version exists in-major but a parent pins an exact version
A fix would need npm
overridesor a newer parent, so these are left as is:postcss8.4.31: pinned bynext14.2.35.ws8.17.x/8.18.x: pinned byethers/viem/@walletconnect.protobufjs7.4.0/7.5.5: pinned by@trezor/protobuf(solana app).underscore1.13.6: pinned byjsonpath.lodash4.17.21: pinned by@walletconnect/universal-provider.@openzeppelin/contracts4.7.3: pinned by@arbitrum/nitro-contracts(chainlink_migration).glob/minimatch9.0.3: pinned byeslint-config-next.js-yaml4.1.0,minimatch4.2.1,nanoid3.3.1: pinned bymocha9 (solana-anchor).bigint-bufferandhttp-cache-semanticshave no fix.Checks run
Each check ran on this branch and on
main, with Node 24.12. "Same on main" means the check fails the same way onmain.npm ci && npm run buildnpm ci && next buildnpm cifails on main)pnpm@9.2.0 install --frozen-lockfile && pnpm testpnpm@10 install --frozen-lockfilepnpm run lintnpm ci && npm testnpm ci && npm run buildnpm cinpm cinpm ci && npm run buildCI=true; withCI=trueit fails the same as main (unusedenvlint warning)npm cinext buildfuels buildoutput insrc/sway-api)npm ci && npm run compilenpm ci && npm run buildnpm ci && npm run compilenpm cifails on main)npm ci && npm run compilenpm ci && PYTH_CONTRACT_ADDRESS=<addr> jestpnpm@9.2.0 install --frozen-lockfile,test:format,test:types,buildcargo +1.81.0 clippy --all-targets --locked -- -D warningsrust-toolchain):cargo +1.75.0 test --lockedcargo +1.81.0 clippy --all-targets --locked -- -D warningscargo build-sbf -- --lockedrust-toolchain):cargo test --locked, after thebuild-sbfabovetest1withInvalidAccountData, the same as mainrust-toolchain.toml):cargo check --all-targets --lockedcargo check --all-targets --lockedcargo audit, before theopensslpinopenssladvisories listed above back to publisherThese are example apps, not deployed services.
🤖 Generated with Claude Code