Vulnerability library
Security checkNovember 11, 2023

`chainId` may be outdated if user changes chains as part of connection in @web3-react - @web3-react/coinbase-wallet

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

chainId may be outdated if the user changes chains as part of the connection flow. This means that the value of chainId returned by useWeb3React() may be incorrect. In an application, this means that any data derived from chainId could be incorrect.

Recommendation

Update the @web3-react/coinbase-wallet package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 6.0.0, < 8.0.35-beta.0
  • Patched version(s): 8.0.35-beta.0

References

Could your website be exposed too?

SmartScanner can check your website for `chainId` may be outdated if user changes chains as part of connection in @web3-react - @web3-react/coinbase-wallet and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 11, 2023