CVE-2023-30543CWE-362

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

Medium · published April 17, 2023

CVSS v3.1
5.2
EPSS
0%
Percentile
30.5
In the wild
Unconfirmed
What it is

@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.

The record
Technical detail
CVSS v3.1
5.2 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00378 · 30.5th percentile
Weakness
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Published
2023-04-17T21:02Z
EPSS history
Timeline
  • 17 APR 21:02Z
    `chainId` may be outdated if user changes chains as part of connection in @web3-react
    cvelistv5