Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @web3-react/metamask
  4. ›
  5. CVE-2023-30543

CVE-2023-30543: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

April 17, 2023 (updated May 1, 2023)

@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.

References

  • github.com/Uniswap/web3-react/pull/749
  • github.com/Uniswap/web3-react/security/advisories/GHSA-8pf3-6fgr-3g3g
  • github.com/advisories/GHSA-8pf3-6fgr-3g3g
  • nvd.nist.gov/vuln/detail/CVE-2023-30543

Code Behaviors & Features

Detect and mitigate CVE-2023-30543 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.0.0 up to 6.2.14, all versions starting from 8.0.0 up to 8.0.29

Fixed versions

  • 8.2.0

Solution

Upgrade to version 8.2.0 or above.

Impact 5.7 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

npm/@web3-react/metamask/CVE-2023-30543.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:02 +0000.