CVE-2023-30543`chainId` may be outdated if user changes chains as part of connection in @web3-react
- 5.2MediumCVSS base score
- 0.38%Exploitation in 30 daysEPSS · top 68% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 5 days later
· 5 days later
Published
- 22 months later
· 22 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L |
| NVDNVD · Modified | 3.1 | Medium5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.38% · top 68% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.2.
Affected products
- affected @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 packages
Affected packages4
From reviewed advisories of the GitHub Advisory Database.
- npm@web3-react/coinbase-walletGHSA-8pf3-6fgr-3g3g (opens in a new tab)
- npm@web3-react/eip1193GHSA-8pf3-6fgr-3g3g (opens in a new tab)
- npm@web3-react/metamaskGHSA-8pf3-6fgr-3g3g (opens in a new tab)
- npm@web3-react/walletconnectGHSA-8pf3-6fgr-3g3g (opens in a new tab)
References
References2
- https://github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3g (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/Uniswap/web3-react/pull/749 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-1241 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-8pf3-6fgr-3g3g (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-30543)Record last updated .