blocknative / web3-onboard

Client library to onboard users to web3 apps
https://onboard.blocknative.com/
MIT License
829 stars 488 forks source link

UPDATE - Metamask sdk to latest #2136

Closed Adamj1232 closed 4 months ago

Adamj1232 commented 4 months ago

Description

Update the Metamask SDK dep version to the latest

Checklist

socket-security[bot] commented 4 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/compat-data@7.24.4 None 0 65.2 kB nicolo-ribaudo
npm/@babel/helper-plugin-utils@7.20.2 None 0 11.9 kB nicolo-ribaudo
npm/@babel/helper-string-parser@7.24.1 None 0 31.7 kB nicolo-ribaudo
npm/@babel/runtime@7.20.6 None +1 248 kB nicolo-ribaudo
npm/@babel/types@7.24.0 environment 0 2.41 MB nicolo-ribaudo
npm/@cosmjs/encoding@0.28.13 None +1 92.9 kB webmaster128
npm/@cosmjs/proto-signing@0.28.13 Transitive: filesystem, network +8 18.5 MB webmaster128
npm/@cosmjs/tendermint-rpc@0.28.13 network Transitive: environment, filesystem +11 2.45 MB webmaster128
npm/@ethersproject/sha2@5.7.0 None 0 21.7 kB ricmoo
npm/@lit-labs/ssr-dom-shim@1.1.0 None 0 32.5 kB lit-robot
npm/@noble/hashes@1.1.4 None 0 276 kB paulmillr
npm/@shapeshiftoss/hdwallet-core@1.41.0 None +4 1.03 MB shapeshift-ci-bot
npm/@types/node@18.11.11 None 0 3.56 MB types
npm/@types/react-dom@18.0.9 None 0 28.8 kB types
npm/@types/react@18.0.26 None +3 1.38 MB types
npm/@types/ws@7.4.7 None 0 18.9 kB types
npm/@web3-onboard/coinbase@2.2.2 Transitive: environment, filesystem, network, shell +43 31.6 MB cmeisl
npm/@web3-onboard/dcent@2.2.5 network Transitive: environment +24 13 MB cmeisl
npm/@web3-onboard/fortmatic@2.0.17 None +16 10.9 MB cmeisl
npm/@web3-onboard/gnosis@2.1.8 None +18 11 MB cmeisl
npm/@web3-onboard/hw-common@2.2.1 network +17 13.5 MB cmeisl
npm/@web3-onboard/injected-wallets@2.10.6 None +11 1.56 MB cmeisl
npm/@web3-onboard/keepkey@2.3.5 Transitive: environment, eval, filesystem, network, shell +73 40 MB cmeisl
npm/@web3-onboard/keystone@2.3.5 Transitive: environment +37 19.7 MB cmeisl
npm/@web3-onboard/ledger@2.4.4 None +16 10.8 MB cmeisl
npm/@web3-onboard/magic@2.1.5 Transitive: environment, network +22 12.7 MB cmeisl
npm/@web3-onboard/mew-wallet@2.0.2 None +16 10.9 MB cmeisl
npm/@web3-onboard/portis@2.1.5 Transitive: environment, network +27 13.2 MB cmeisl
npm/@web3-onboard/react@2.8.12 Transitive: network +43 28.9 MB cmeisl
npm/@web3-onboard/sequence@2.0.6 Transitive: environment, network +33 13.9 MB cmeisl
npm/@web3-onboard/taho@2.0.2 None +17 11 MB cmeisl
npm/@web3-onboard/torus@2.2.3 Transitive: filesystem, network +28 16.6 MB cmeisl
npm/@web3-onboard/trust@2.0.2 None +15 10.8 MB cmeisl
npm/@web3-onboard/walletconnect@2.4.6 Transitive: environment, eval, filesystem, network, unsafe +123 33.7 MB cmeisl
npm/base64-js@1.5.1 None 0 9.62 kB feross
npm/bech32@1.1.4 None 0 9.98 kB junderw
npm/big-integer@1.6.51 None 0 164 kB peterolson
npm/bignumber.js@9.1.1 None 0 350 kB mikemcl
npm/bindings@1.5.0 environment, filesystem +1 19.3 kB tootallnate
npm/bip32@2.0.6 None +1 599 kB junderw
npm/bip66@1.1.5 None 0 7.79 kB dcousens
npm/bitcoin-ops@1.4.1 None 0 4.38 kB dcousens
npm/blakejs@1.2.1 None 0 156 kB dcposch
npm/bn.js@5.2.1 None 0 99 kB fanatid
npm/bowser@2.11.0 None 0 217 kB lancedikson
npm/brorand@1.1.0 None 0 3.52 kB indutny
npm/browserify-aes@1.2.0 None +1 34.6 kB cwmma
npm/browserify-rsa@4.1.0 None 0 3.68 kB cwmma
npm/browserslist@4.23.0 environment, filesystem 0 62.8 kB ai
npm/bs58@4.0.1 None +1 13.9 kB dcousens
npm/bs58check@2.1.2 None 0 4.79 kB dcousens
npm/buffer@6.0.3 None 0 91.3 kB feross
npm/bytebuffer@5.0.1 None +1 1.18 MB dcode
npm/call-bind@1.0.2 None +1 39.9 kB ljharb
npm/camelcase@5.3.1 None 0 7.45 kB sindresorhus
npm/caniuse-lite@1.0.30001436 None 0 1.88 MB caniuse-lite
npm/cipher-base@1.0.4 None 0 7.95 kB cwmma
npm/clone@2.1.2 None 0 15.9 kB pvorb
npm/combined-stream@1.0.8 None +1 19.5 kB alexindigo
npm/create-hash@1.2.0 None +2 19 kB cwmma
npm/create-hmac@1.1.7 None 0 5.81 kB cwmma
npm/cross-fetch@3.1.5 network 0 73.8 kB lquixada
npm/d@1.0.1 None 0 22.8 kB medikoo
npm/debug@4.3.4 environment +1 49.2 kB qix
npm/decode-uri-component@0.2.2 None 0 6.09 kB samverschueren
npm/duplexify@4.1.2 None +1 22.2 kB mafintosh
npm/electron-to-chromium@1.4.284 None 0 195 kB kilianvalkhof
npm/elliptic@6.5.4 None +2 148 kB indutny
npm/end-of-stream@1.4.4 None 0 6.23 kB mafintosh
npm/es5-ext@0.10.62 eval +1 402 kB medikoo
npm/es6-promise@4.2.8 None 0 315 kB stefanpenner
npm/es6-symbol@3.1.3 None +2 131 kB medikoo
npm/eth-block-tracker@4.4.3 Transitive: environment, filesystem, unsafe +48 7.38 MB kumavis
npm/eth-json-rpc-filters@4.2.2 None +15 1.32 MB gudahtt
npm/eth-query@2.1.2 None 0 7.29 kB kumavis
npm/ethereumjs-common@1.5.2 None 0 795 kB evertonfraga
npm/ethereumjs-tx@1.3.7 None +5 1.65 MB holgerd77
npm/ethers@5.7.2 Transitive: network +28 17.1 MB ricmoo
npm/ethjs-util@0.1.6 None +2 244 kB silentcicero
npm/events@3.3.0 None 0 82.8 kB goto-bus-stop
npm/evp_bytestokey@1.0.3 None +2 18.9 kB dcousens
npm/extsprintf@1.3.0 None 0 22.8 kB dap
npm/fast-safe-stringify@2.1.1 None 0 39.7 kB matteo.collina
npm/follow-redirects@1.15.2 network 0 28.3 kB rubenverborgh
npm/get-intrinsic@1.1.3 eval +2 65.1 kB ljharb
npm/google-protobuf@3.21.2 None 0 820 kB dibenede
npm/has-symbols@1.0.3 None 0 20.6 kB ljharb
npm/hash.js@1.1.7 None 0 41.7 kB indutny
npm/ieee754@1.2.1 None 0 6.8 kB feross
npm/inherits@2.0.4 None 0 3.96 kB isaacs
npm/is-typed-array@1.1.10 None +5 93.1 kB ljharb
npm/is-typedarray@1.0.0 None 0 4.41 kB hughsk
npm/js-sha3@0.8.0 None 0 52.9 kB emn178
npm/js-tokens@4.0.0 None 0 15.1 kB lydell
npm/json-rpc-engine@6.1.0 None 0 47.4 kB rekmarks
npm/json-rpc-random-id@1.0.1 None 0 2.12 kB kumavis
npm/json-stable-stringify@1.0.2 None +1 43.1 kB ljharb
npm/json-stringify-safe@5.0.1 None 0 12.7 kB isaacs
npm/keccak@3.0.2 None +1 1.57 MB fanatid
npm/level-errors@1.0.5 None +2 34.4 kB ralphtheninja
npm/lodash@4.17.21 None 0 1.41 MB bnjmnt4n
npm/loose-envify@1.4.0 environment 0 5.81 kB zertosh
npm/merkle-patricia-tree@2.3.2 Transitive: environment +30 2.94 MB holgerd77
npm/mime-types@2.1.35 None +1 224 kB dougwilson
npm/minimalistic-assert@1.0.1 None 0 1.55 kB cwmma
npm/minimist@1.2.7 None 0 50.7 kB ljharb
npm/nan@2.17.0 None 0 424 kB kkoopa
npm/next-tick@1.1.0 None 0 7.65 kB medikoo
npm/next@13.1.6 environment, filesystem, network, shell, unsafe +20 1.19 GB vercel-release-bot
npm/node-fetch@2.6.7 network 0 152 kB endless
npm/node-gyp-build@4.5.0 environment, filesystem 0 12.9 kB vweevers
npm/node-releases@2.0.14 None 0 34 kB chicoxyzzy
npm/object-assign@4.1.1 None 0 5.49 kB sindresorhus
npm/once@1.4.0 None 0 4.05 kB isaacs
npm/p-limit@2.3.0 None +1 11.8 kB sindresorhus
npm/parse-asn1@5.1.6 None +1 62.9 kB cwmma
npm/pbkdf2@3.1.2 None 0 13.8 kB cwmma
npm/prop-types@15.8.1 environment +1 118 kB ljharb
npm/protobufjs@6.11.4 filesystem, network +11 15 MB google-wombot
npm/randombytes@2.1.0 None 0 6.36 kB cwmma
npm/react-dom@18.2.0 environment +1 4.6 MB gnoff
npm/react@18.2.0 environment 0 316 kB gnoff
npm/readable-stream@3.6.0 environment +1 137 kB matteo.collina
npm/ripemd160@2.0.2 None +1 15.9 kB dcousens
npm/ripple-address-codec@4.2.5 None 0 49.2 kB jst5000
npm/rlp@2.2.7 None 0 62.9 kB ralxz
npm/rxjs@6.6.7 None 0 5.13 MB blesh
npm/safe-buffer@5.2.1 None 0 32.1 kB feross
npm/safer-buffer@2.1.2 None 0 42.3 kB chalker
npm/scrypt-js@3.0.1 None 0 226 kB ricmoo
npm/sdp@2.12.0 None 0 98.8 kB fippo
npm/secp256k1@4.0.3 None +1 2.69 MB fanatid
npm/semaphore@1.1.0 None 0 8.13 kB addaleax
npm/semver@6.3.0 None 0 67.1 kB isaacs
npm/sha.js@2.4.11 None 0 31.1 kB dcousens
npm/string-width@4.2.3 None +2 58.4 kB sindresorhus
npm/strip-ansi@6.0.1 None +1 9.64 kB sindresorhus
npm/through2@2.0.5 None +2 17.8 kB rvagg

🚮 Removed packages: npm/@algolia/client-search@4.17.0, npm/@babel/code-frame@7.23.5, npm/@babel/compat-data@7.23.5, npm/@babel/helper-module-imports@7.22.15, npm/@babel/helper-plugin-utils@7.22.5, npm/@babel/helper-string-parser@7.23.4, npm/@babel/highlight@7.23.4, npm/@babel/parser@7.23.6, npm/@babel/runtime@7.23.2, npm/@babel/types@7.23.6, npm/@chakra-ui/react-utils@1.2.3, npm/@chakra-ui/theme-tools@1.3.6, npm/@chakra-ui/utils@1.10.4, npm/@cosmjs/amino@0.31.0, npm/@cosmjs/crypto@0.31.0, npm/@cosmjs/encoding@0.31.0, npm/@cosmjs/math@0.31.3, npm/@cosmjs/proto-signing@0.31.0, npm/@cosmjs/stream@0.29.5, npm/@cosmjs/tendermint-rpc@0.29.5, npm/@cosmjs/utils@0.31.3, npm/@docsearch/css@3.3.4, npm/@docsearch/js@3.3.4, npm/@ethereumjs/common@3.1.2, npm/@ethereumjs/tx@4.1.2, npm/@ethereumjs/util@8.0.6, npm/@iconify-json/ri@1.1.8, npm/@iconify/types@2.0.0, npm/@jridgewell/gen-mapping@0.3.3, npm/@jridgewell/trace-mapping@0.3.18, npm/@lit-labs/ssr-dom-shim@1.1.1, npm/@metamask/eth-sig-util@5.1.0, npm/@motionone/animation@10.17.0, npm/@motionone/easing@10.17.0, npm/@motionone/generators@10.17.0, npm/@motionone/types@10.17.0, npm/@motionone/utils@10.17.0, npm/@noble/curves@1.2.0, npm/@noble/hashes@1.3.2, npm/@nodelib/fs.stat@2.0.5, npm/@safe-global/safe-apps-provider@0.18.0, npm/@safe-global/safe-apps-sdk@8.1.0, npm/@shapeshiftoss/hdwallet-core@1.49.0, npm/@solana/web3.js@1.87.1, npm/@sveltejs/adapter-static@2.0.2, npm/@sveltejs/kit@1.27.2, npm/@svelteness/kit-docs@1.1.5, npm/@tailwindcss/typography@0.5.9, npm/@toruslabs/base-controllers@2.9.0, npm/@toruslabs/eccrypto@2.2.1, npm/@toruslabs/openlogin-jrpc@4.7.2, npm/@toruslabs/openlogin-utils@4.7.0, npm/@types/animejs@3.1.7, npm/@types/lodash@4.14.202, npm/@types/node@18.15.13, npm/@types/react@18.2.6, npm/@types/secp256k1@4.0.5, npm/@vitejs/plugin-react@4.2.1, npm/@wagmi/connectors@3.1.5, npm/@walletconnect/legacy-types@2.0.0, npm/@walletconnect/modal@2.6.2, npm/@walletconnect/types@2.10.2, npm/@walletconnect/utils@2.10.2, npm/@web3-onboard/arcana-auth@2.0.0, npm/@web3-onboard/bitget@2.0.1, npm/@web3-onboard/blocto@2.0.0, npm/@web3-onboard/capsule@2.0.1, npm/@web3-onboard/cede-store@2.2.0, npm/@web3-onboard/coinbase@2.2.7, npm/@web3-onboard/core@2.21.4, npm/@web3-onboard/dcent@2.2.7, npm/@web3-onboard/enkrypt@2.0.4, npm/@web3-onboard/fortmatic@2.0.19, npm/@web3-onboard/frame@2.0.2, npm/@web3-onboard/frontier@2.0.4, npm/@web3-onboard/gas@2.1.8, npm/@web3-onboard/gnosis@2.1.10, npm/@web3-onboard/infinity-wallet@2.0.4, npm/@web3-onboard/injected-wallets@2.10.13-alpha.1, npm/@web3-onboard/keepkey@2.3.7, npm/@web3-onboard/keystone@2.3.7, npm/@web3-onboard/ledger@2.6.0, npm/@web3-onboard/magic@2.1.7, npm/@web3-onboard/metamask@2.0.3, npm/@web3-onboard/mew-wallet@2.0.4, npm/@web3-onboard/particle-network@2.0.0, npm/@web3-onboard/phantom@2.0.3, npm/@web3-onboard/portis@2.1.7, npm/@web3-onboard/sequence@2.0.8, npm/@web3-onboard/taho@2.0.5, npm/@web3-onboard/torus@2.2.6, npm/@web3-onboard/transaction-preview@2.0.8, npm/@web3-onboard/trust@2.0.4, npm/@web3-onboard/uauth@2.1.1, npm/@web3-onboard/venly@2.0.0, npm/@web3-onboard/walletconnect@2.5.4, npm/@web3-onboard/web3auth@2.2.3, npm/@web3-onboard/xdefi@2.0.4, npm/@web3-onboard/zeal@2.0.4, npm/@web3auth/base@5.2.0, npm/agentkeepalive@4.5.0, npm/animejs@3.2.1, npm/anymatch@3.1.3, npm/autoprefixer@10.4.14, npm/axios@1.4.0

View full report↗︎

socket-security[bot] commented 4 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/es5-ext@0.10.62
  • Install script: postinstall
  • Source: node -e "try{require('./_postinstall')}catch(e){}" || exit 0
Protestware/Troll package npm/es5-ext@0.10.62
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
Install scripts npm/secp256k1@3.8.0
  • Install script: install
  • Source: npm run rebuild || echo "Secp256k1 bindings compilation fail. Pure JS implementation will be used."
Install scripts npm/bigint-buffer@1.1.5
  • Install script: install
  • Source: npm run rebuild || echo "Couldn't build bindings. Non-native version used."
Install scripts npm/secp256k1@3.7.1
  • Install script: install
  • Source: npm run rebuild || echo "Secp256k1 bindings compilation fail. Pure JS implementation will be used."
Git dependency npm/eth-sig-util@1.4.2
Telemetry npm/next@13.1.6
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is protestware?

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Consider that consuming this package my come along with functionality unrelated to its primary purpose.

What are git dependencies?

Contains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.

Publish the git dependency to npm or a private package repository and consume it from there.

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/es5-ext@0.10.62
  • @SocketSecurity ignore npm/secp256k1@3.8.0
  • @SocketSecurity ignore npm/bigint-buffer@1.1.5
  • @SocketSecurity ignore npm/secp256k1@3.7.1
  • @SocketSecurity ignore npm/eth-sig-util@1.4.2
  • @SocketSecurity ignore npm/next@13.1.6