{"answers":{"affected":"8 open source packages ship an affected version, including @web3-react/coinbase-wallet, @web3-react/eip1193 and @web3-react/metamask. It affects 4 products.","exploited":"There is no known exploitation of CVE-2023-30543 in the wild and no public exploit code.","fix":"Upgrade @web3-react/coinbase-wallet to 8.0.35-beta.0 or later.","what":"CVE-2023-30543 is a medium-severity vulnerability in Uniswap web3-react, published on 17 Apr 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-30543 and fix it if it is affected.\n\nWhat it is: CVE-2023-30543 is a medium-severity vulnerability in Uniswap web3-react, published on 17 Apr 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-30543 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @web3-react/coinbase-wallet (npm): affected from 6.0.0; fixed in 8.0.35-beta.0\n- @web3-react/coinbase-wallet (npm): affected from 6.0.0; fixed in 8.0.35-beta.0\n- @web3-react/eip1193 (npm): affected from 6.0.0; fixed in 8.0.27-beta\n- @web3-react/eip1193 (npm): affected from 6.0.0; fixed in 8.0.27-beta\n- @web3-react/metamask (npm): affected from 6.0.0; fixed in 8.0.30-beta.0\n- @web3-react/metamask (npm): affected from 6.0.0; fixed in 8.0.30-beta.0\n- @web3-react/walletconnect (npm): affected from 6.0.0; fixed in 8.0.37-beta.0\n- @web3-react/walletconnect (npm): affected from 6.0.0; fixed in 8.0.37-beta.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-30543/ (Markdown: https://insights.sbomify.com/CVE-2023-30543/index.md)","id":"CVE-2023-30543","markdown":"https://insights.sbomify.com/CVE-2023-30543/index.md","name":"CVE-2023-30543","record":{"aliases":["GHSA-8pf3-6fgr-3g3g"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Ethereum web3 library","requires_auth":"high_privilege","summary":"Outdated chainId during connection flow may cause applications to send funds to incorrect addresses, requiring users to upgrade the library.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"web3-react_coinbase-wallet","vendor":"uniswap"},{"product":"web3-react_eip1193","vendor":"uniswap"},{"product":"web3-react_metamask","vendor":"uniswap"},{"product":"web3-react_walletconnect","vendor":"uniswap"}],"cvss":{"score":5.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"`chainId` may be outdated if user changes chains as part of connection in @web3-react","id":"CVE-2023-30543","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"race_condition","year":"2023"},"n_packages":8,"n_references":2,"next":{"headline":"Kiwi TCMS may allow user to update email address to unverified one","id":"CVE-2023-30544"},"packages":[{"ecosystem":"npm","fixed":["8.0.35-beta.0"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/coinbase-wallet","purl":null,"source":"GHSA-8pf3-6fgr-3g3g"},{"ecosystem":"npm","fixed":["8.0.35-beta.0"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/coinbase-wallet","purl":"pkg:npm/%40web3-react/coinbase-wallet","source":"GHSA-8pf3-6fgr-3g3g"},{"ecosystem":"npm","fixed":["8.0.27-beta"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/eip1193","purl":null,"source":"GHSA-8pf3-6fgr-3g3g"},{"ecosystem":"npm","fixed":["8.0.27-beta"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/eip1193","purl":"pkg:npm/%40web3-react/eip1193","source":"GHSA-8pf3-6fgr-3g3g"},{"ecosystem":"npm","fixed":["8.0.30-beta.0"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/metamask","purl":null,"source":"GHSA-8pf3-6fgr-3g3g"},{"ecosystem":"npm","fixed":["8.0.30-beta.0"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/metamask","purl":"pkg:npm/%40web3-react/metamask","source":"GHSA-8pf3-6fgr-3g3g"},{"ecosystem":"npm","fixed":["8.0.37-beta.0"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/walletconnect","purl":null,"source":"GHSA-8pf3-6fgr-3g3g"},{"ecosystem":"npm","fixed":["8.0.37-beta.0"],"introduced":["6.0.0"],"last_affected":[],"package":"@web3-react/walletconnect","purl":"pkg:npm/%40web3-react/walletconnect","source":"GHSA-8pf3-6fgr-3g3g"}],"prev":{"headline":"GovernorCompatibilityBravo may trim proposal calldata","id":"CVE-2023-30542"},"products":["web3-react"],"published":"2023-04-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-05","vendors":["Uniswap"]},"summary":"Outdated chainId during connection flow may cause applications to send funds to incorrect addresses, requiring users to upgrade the library.","url":"https://insights.sbomify.com/CVE-2023-30543/"}