{"cve":"CVE-2023-30543","nvd":{"published":"2023-04-17T22:15:10.420","modified":"2026-06-17T05:54:59.217","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","score":5.7},"cwes":["CWE-362"],"references":["https://github.com/Uniswap/web3-react/pull/749","https://github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3g","https://github.com/Uniswap/web3-react/pull/749","https://github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3g"],"products":["uniswap:web3-react_coinbase-wallet","uniswap:web3-react_eip1193","uniswap:web3-react_metamask","uniswap:web3-react_walletconnect"],"source":"nvd","synced_at":"2026-10-19T21:38:05.473481323+00:00"},"epss":{"cve":"CVE-2023-30543","score":0.00378,"percentile":0.31759,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8pf3-6fgr-3g3g","url":"https://osv.dev/vulnerability/GHSA-8pf3-6fgr-3g3g","summary":"`chainId` may be outdated if user changes chains as part of connection in @web3-react","modified":"2023-11-08T04:12:25.010397Z","packages":[{"ecosystem":"npm","name":"@web3-react/coinbase-wallet","purl":"pkg:npm/%40web3-react/coinbase-wallet","ranges":[">=6.0.0 <8.0.35-beta.0"],"fixed":["8.0.35-beta.0"]},{"ecosystem":"npm","name":"@web3-react/eip1193","purl":"pkg:npm/%40web3-react/eip1193","ranges":[">=6.0.0 <8.0.27-beta"],"fixed":["8.0.27-beta"]},{"ecosystem":"npm","name":"@web3-react/metamask","purl":"pkg:npm/%40web3-react/metamask","ranges":[">=6.0.0 <8.0.30-beta.0"],"fixed":["8.0.30-beta.0"]},{"ecosystem":"npm","name":"@web3-react/walletconnect","purl":"pkg:npm/%40web3-react/walletconnect","ranges":[">=6.0.0 <8.0.37-beta.0"],"fixed":["8.0.37-beta.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}