Vulnerability in Uniswap Web3-React
CVE-2023-30543
@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.
Vulnerability class: Race Condition
EPSS: 0.004 (30.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.2 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L.
Affected products
- Uniswap Web3-react — versions @web3-react/coinbase-wallet: >= 6, < 8.0.35-beta.0, @web3-react/eip1193: >= 6, < 8.0.27-beta.0, @web3-react/metamask: >= 6, < 8.0.30-beta.0
- Uniswap Web3-react_coinbase-wallet — versions 7.0.0, 7.0.1, 7.0.2
- Uniswap Web3-react_eip1193 — versions 7.0.0, 7.0.1, 7.0.2
- Uniswap Web3-react_metamask — versions 8.0.0, 8.0.1, 8.0.2
- Uniswap Web3-react_walletconnect — versions 7.0.0, 7.0.1, 7.0.2
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC, Issue Tracking)
Frequently asked questions
- What is CVE-2023-30543?
- CVE-2023-30543 is a medium-severity vulnerability in Uniswap Web3-React, classified under Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition). CVSS score: 5.2/10. Published 2023-04-17.
- How severe is CVE-2023-30543?
- Medium severity. CVSS v3 base score is 5.2 out of 10.