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/walletconnect package to the latest compatible version. Followings are version details:
- Affected version(s): >= 6.0.0, < 8.0.37-beta.0
- Patched version(s): 8.0.37-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 and gives you actionable findings to investigate.
Start a free scanRelated Issues
- `chainId` may be outdated if user changes chains as part of connection in @web3-react - @web3-react/metamask - CVE-2023-30543
- `chainId` may be outdated if user changes chains as part of connection in @web3-react - @web3-react/eip1193 - CVE-2023-30543
- `chainId` may be outdated if user changes chains as part of connection in @web3-react - @web3-react/coinbase-wallet - CVE-2023-30543
- Strapi may leak sensitive user information, user reset password, tokens via content-manager views - CVE-2023-36472


