@web3-react/coinbase-wallet
Affected
- introduced
6.0.0, fixed8.0.35-beta.0(semver)
Fixed versions
8.0.35-beta.0
Fix
- Fixed version
8.0.35-beta.0npm install @web3-react/[email protected]
Advisory
Also known as: CVE-2023-30543
chainId may be outdated if user changes chains as part of connection in @web3-react
ImpactchainId 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 is a common approach when using other foundational libraries like `ethers`, and most users of v8 will want to upgrade past the affected versions.
Patches
Patched in https://github.com/Uniswap/web3-react/pull/749.
Users of [email protected] should upgrade to at least:
Workarounds
N/A
References
N/A
Medium Basis: The source's own band: MODERATE
6.0.0, fixed 8.0.35-beta.0 (semver)8.0.35-beta.0
8.0.35-beta.0npm install @web3-react/[email protected]6.0.0, fixed 8.0.27-beta (semver)8.0.27-beta
8.0.27-betanpm install @web3-react/[email protected]6.0.0, fixed 8.0.30-beta.0 (semver)8.0.30-beta.0
8.0.30-beta.0npm install @web3-react/[email protected]6.0.0, fixed 8.0.37-beta.0 (semver)8.0.37-beta.0
8.0.37-beta.0npm install @web3-react/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0