{"id":"CVE-2023-30543","aliases":["GHSA-8pf3-6fgr-3g3g"],"url":"https://o3.security/vulnerability/CVE-2023-30543","summary":"`chainId` may be outdated if user changes chains as part of connection in @web3-react","details":"### Impact\n`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.\n\nFor 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.\n\n### Patches\nPatched in https://github.com/Uniswap/web3-react/pull/749.\nUsers of web3-react@8.0.x-beta.0 should upgrade to at least:\n - @web3-react/coinbase-wallet@^8.0.35-beta.0\n - @web3-react/eip1193@^8.0.27-beta.0\n - @web3-react/metamask@^8.0.30-beta.0\n - @web3-react/walletconnect@^8.0.37-beta.0\n\n### Workarounds\nN/A\n\n### References\nN/A\n","published":"2023-04-17T21:02:20.566Z","modified":"2026-08-12T03:51:11.446355499Z","cvss":{"score":5.2,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@web3-react/coinbase-wallet","fixedVersion":"8.0.35-beta.0"},{"ecosystem":"npm","name":"@web3-react/eip1193","fixedVersion":"8.0.27-beta"},{"ecosystem":"npm","name":"@web3-react/metamask","fixedVersion":"8.0.30-beta.0"},{"ecosystem":"npm","name":"@web3-react/walletconnect","fixedVersion":"8.0.37-beta.0"}],"fix":{"url":"https://github.com/Uniswap/web3-react/pull/749","label":"Uniswap/web3-react#749"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30543.json"},{"type":"ADVISORY","url":"https://github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30543"},{"type":"FIX","url":"https://github.com/Uniswap/web3-react/pull/749"},{"type":"PACKAGE","url":"https://github.com/Uniswap/web3-react"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:11.446355499Z"}}