CVE-2023-30543
published medium CVSS 3.1 · 5.2`chainId` may be outdated if user changes chains as part of connection in @web3-react
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Uniswap | — | web3-react@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 · @web3-react/walletconnect: >= 6, < 8.0.37-beta.0 | Affected | Not stated | GitHub_M |
Description
@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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.2 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Uniswap | web3-react | @web3-react/coinbase-wallet: >= 6, < 8.0.35-beta.0 (affected)@web3-react/eip1193: >= 6, < 8.0.27-beta.0 (affected)@web3-react/metamask: >= 6, < 8.0.30-beta.0 (affected)@web3-react/walletconnect: >= 6, < 8.0.37-beta.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-362 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
2Provider assertions
3GitHub_M · cna
`chainId` may be outdated if user changes chains as part of connection in @web3-react
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 83a1efeccb3e2fdd9aa20f1c9818661d8fe01c0631398c6931b2341e345cce74
- Ingested
- 23 Sep 2026, 08:08:27 UTC
- Source record
- Official CVE record