GHSA-8pf3-6fgr-3g3g

    Dashboard / Vulnerabilities / GHSA-8pf3-6fgr-3g3g

    GHSA-8pf3-6fgr-3g3g

    Published: 18 Apr 2023Last Modified: 8 Nov 2023

    Summary: `chainId` may be outdated if user changes chains as part of connection in @web3-react

    Details: ### Impact `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 is a common approach when using other foundational libraries like [`ethers`](https://github.com/ethers-io/ethers.js), 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: - @web3-react/coinbase-wallet@^8.0.35-beta.0 - @web3-react/eip1193@^8.0.27-beta.0 - @web3-react/metamask@^8.0.30-beta.0 - @web3-react/walletconnect@^8.0.37-beta.0 ### Workarounds N/A ### References N/A

    Affected packages

    Package

    Name: @web3-react/coinbase-wallet

    Purl: pkg:npm/%40web3-react/coinbase-wallet

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 6.0.0
    Fixed -8.0.35-beta.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-8pf3-6fgr-3g3g | CVE-DB