# CVE-2023-30543: `chainId` may be outdated if user changes chains as part of connection in @web3-react

- Severity: Medium 5.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2023-04-17T21:02:20.566Z
- Modified: 2026-06-17T05:54:59.217Z
- Also known as: GHSA-8pf3-6fgr-3g3g
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- 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
- @web3-react/coinbase-wallet (npm): from 6.0.0 before 8.0.35-beta.0
- @web3-react/eip1193 (npm): from 6.0.0 before 8.0.27-beta
- @web3-react/metamask (npm): from 6.0.0 before 8.0.30-beta.0
- @web3-react/walletconnect (npm): from 6.0.0 before 8.0.37-beta.0
- uniswap web3-react_coinbase-wallet: from 6.0.0 up to 6.2.14; 7.0.0; 7.0.1; 7.0.2; 8.0.22; 8.0.23; 8.0.24; 8.0.25; 8.0.26; 8.0.27; 8.0.28; 8.0.29; and 5 more
- uniswap web3-react_eip1193: from 6.0.0 up to 6.2.14; 7.0.0; 7.0.1; 7.0.2; 8.0.0; 8.0.1; 8.0.2; 8.0.3; 8.0.4; 8.0.5; 8.0.6; 8.0.7; and 19 more
- uniswap web3-react_metamask: from 6.0.0 up to 6.2.14; 8.0.0; 8.0.1; 8.0.2; 8.0.3; 8.0.4; 8.0.5; 8.0.6; 8.0.7; 8.0.8; 8.0.9; 8.0.10; and 19 more
- uniswap web3-react_walletconnect: from 6.0.0 up to 6.2.14; 7.0.0; 7.0.1; 7.0.2; 8.0.0; 8.0.1; 8.0.2; 8.0.3; 8.0.4; 8.0.5; 8.0.6; 8.0.7; and 29 more

## Every score

- GitHub_M: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L`
- NVD: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3g> (vendor-advisory, web)
- <https://github.com/Uniswap/web3-react/pull/749> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30543> (advisory)
- <https://github.com/Uniswap/web3-react> (package)

## Sources

- CVE List: [CVE-2023-30543](https://www.cve.org/CVERecord?id=CVE-2023-30543), CVE Terms of Use, modified 2025-02-05
- GitHub Advisory Database: [GHSA-8pf3-6fgr-3g3g](https://github.com/advisories/GHSA-8pf3-6fgr-3g3g), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-30543](https://nvd.nist.gov/vuln/detail/CVE-2023-30543), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-30543 · Whole record: https://cve.day/CVE-2023-30543.json · Rebuilt by cve.day 2026-11-25T22:58:23.570Z
