Vulnerability Description
@web3-react is a framework for building Ethereum Apps . In affected versions the `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. For example, if a swapping application derives a wrapped token contract address from the `chainId` *and* a user has changed chains as part of their connection flow the application could cause the user to send funds to the incorrect address when wrapping. This issue has been addressed in PR #749 and is available in updated npm artifacts. There are no known workarounds for this issue. Users are advised to upgrade.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Uniswap | Web3-React Coinbase-Wallet | >= 6.0.0, <= 6.2.14 |
| Uniswap | Web3-React Eip1193 | >= 6.0.0, <= 6.2.14 |
| Uniswap | Web3-React Metamask | >= 6.0.0, <= 6.2.14 |
| Uniswap | Web3-React Walletconnect | >= 6.0.0, <= 6.2.14 |
Related Weaknesses (CWE)
References
- https://github.com/Uniswap/web3-react/pull/749Issue TrackingPatch
- https://github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3gVendor Advisory
- https://github.com/Uniswap/web3-react/pull/749Issue TrackingPatch
- https://github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3gVendor Advisory
FAQ
What is CVE-2023-30543?
CVE-2023-30543 is a vulnerability with a CVSS score of 5.2 (MEDIUM). @web3-react is a framework for building Ethereum Apps . In affected versions the `chainId` may be outdated if the user changes chains as part of the connection flow. This means that the value of `chai...
How severe is CVE-2023-30543?
CVE-2023-30543 has been rated MEDIUM with a CVSS base score of 5.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-30543?
Check the references section above for vendor advisories and patch information. Affected products include: Uniswap Web3-React Coinbase-Wallet, Uniswap Web3-React Eip1193, Uniswap Web3-React Metamask, Uniswap Web3-React Walletconnect.