CVE-2023-30543

Medium

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.

SeverityMedium
CVSS5.2
Exploit probability—
ProductUniswap Web3-react Coinbase-wallet
PublishedApr 17, 2023
First seenApr 17, 2023

How to fix

Update
  • @web3-react/coinbase-wallet8.0.35-beta.0 or later
  • @web3-react/eip11938.0.27-beta or later
  • @web3-react/metamask8.0.30-beta.0 or later
  • @web3-react/walletconnect8.0.37-beta.0 or later

Affected products

ProductAffected versionsFixed in
uniswap web3-react_coinbase-wallet6.0.0 ≤ v ≤ 6.2.14, 7.0.0, 7.0.1, 7.0.2, 8.0.22, 8.0.23, 8.0.24, 8.0.25, 8.0.26, 8.0.27, 8.0.28, 8.0.29, 8.0.30, 8.0.31, 8.0.32, 8.0.33, 8.0.34—
uniswap web3-react_eip11936.0.0 ≤ v ≤ 6.2.14, 7.0.0, 7.0.1, 7.0.2, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.7, 8.0.8, 8.0.9, 8.0.10, 8.0.11, 8.0.12, 8.0.13, 8.0.14, 8.0.15, 8.0.16, 8.0.17, 8.0.18, 8.0.19, 8.0.20, 8.0.21, 8.0.22, 8.0.23, 8.0.24, 8.0.25, 8.0.26—
uniswap web3-react_metamask6.0.0 ≤ v ≤ 6.2.14, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.7, 8.0.8, 8.0.9, 8.0.10, 8.0.11, 8.0.12, 8.0.13, 8.0.14, 8.0.15, 8.0.16, 8.0.17, 8.0.18, 8.0.19, 8.0.20, 8.0.21, 8.0.22, 8.0.23, 8.0.24, 8.0.25, 8.0.26, 8.0.27, 8.0.28, 8.0.29—
uniswap web3-react_walletconnect6.0.0 ≤ v ≤ 6.2.14, 7.0.0, 7.0.1, 7.0.2, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.7, 8.0.8, 8.0.9, 8.0.10, 8.0.11, 8.0.12, 8.0.13, 8.0.14, 8.0.15, 8.0.16, 8.0.17, 8.0.18, 8.0.19, 8.0.20, 8.0.21, 8.0.22, 8.0.23, 8.0.24, 8.0.25, 8.0.26, 8.0.27, 8.0.28, 8.0.29, 8.0.30, 8.0.31, 8.0.32, 8.0.33, 8.0.34, 8.0.35, 8.0.36—
@web3-react/coinbase-walletnpm6.0.0 ≤ v < 8.0.35-beta.08.0.35-beta.0
@web3-react/eip1193npm6.0.0 ≤ v < 8.0.27-beta8.0.27-beta
@web3-react/metamasknpm6.0.0 ≤ v < 8.0.30-beta.08.0.30-beta.0
@web3-react/walletconnectnpm6.0.0 ≤ v < 8.0.37-beta.08.0.37-beta.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2023-30543 · Uniswap Web3-react Coinbase-wallet · Dark Radar