@openzeppelin/confidential-contracts@0.2.0 vulnerabilities

Smart Contract library for use with confidential coprocessors

  • latest version

    0.3.1

  • latest non vulnerable version

  • first published

    8 months ago

  • latest version published

    2 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @openzeppelin/confidential-contracts package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Integer Overflow or Wraparound

    @openzeppelin/confidential-contracts is a Smart Contract library for use with confidential coprocessors

    Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the wrap and onTransferReceived functions used by the ERC7984 contract. An attacker can cause users to lose funds by triggering a silent failure in the _mint function, resulting in the underlying tokens being sent without receiving the corresponding confidential wrapped tokens. By default, this overflow happens after wrapping ~18.4 trillion tokens.

    How to fix Integer Overflow or Wraparound?

    Upgrade @openzeppelin/confidential-contracts to version 0.3.1 or higher.

    <0.3.1