@web3-react/coinbase-wallet@8.0.29-beta.0 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the @web3-react/coinbase-wallet package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Race Condition

Affected versions of this package are vulnerable to Race Condition such that 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.

Impact:

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.

How to fix Race Condition?

Upgrade @web3-react/coinbase-wallet to version 8.0.35-beta.0 or higher.

>=8.0.22-beta.0 <8.0.35-beta.0