CVE-2023-30543 json
`chainId` may be outdated if user changes chains as part of connection in @web3-react
published 3y ago modified 4mo ago also GHSA-8pf3-6fgr-3g3g , EUVD-2023-1241
- cvss
- 5.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
Summary
@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.
Patch / fix
- npm @web3-react/coinbase-wallet 8.0.35-beta.0
- npm @web3-react/eip1193 8.0.27-beta
- npm @web3-react/metamask 8.0.30-beta.0
- npm @web3-react/walletconnect 8.0.37-beta.0
- github.com/Uniswap/web3-react#749 pull request
Is CVE-2023-30543 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L |
| NVD | 3.1 | 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 5.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @web3-react/coinbase-wallet | >=6.0.0, <8.0.35-beta.0 |
8.0.35-beta.0 |
| npm | @web3-react/eip1193 | >=6.0.0, <8.0.27-beta |
8.0.27-beta |
| npm | @web3-react/metamask | >=6.0.0, <8.0.30-beta.0 |
8.0.30-beta.0 |
| npm | @web3-react/walletconnect | >=6.0.0, <8.0.37-beta.0 |
8.0.37-beta.0 |
Affected products
- Uniswap web3-react
Classification
- Weakness
-
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
References
-
github.com
/Uniswap/web3-react/pull/749
web, issue-tracking, patch
-
github.com
/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3g
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-30543
advisory
-
github.com
/Uniswap/web3-react
package
Sources
- CVE List CVE-2023-30543
- GitHub Advisory GHSA-8pf3-6fgr-3g3g
- NVD CVE-2023-30543
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.