Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @openzeppelin/contracts-upgradeable
  4. ›
  5. GMS-2021-26

GMS-2021-26: Initializer reentrancy may lead to double initialization

December 14, 2021

Initializer functions that are invoked separate from contract creation (the most prominent example being minimal proxies) may be reentered if they make an untrusted non-view external call. Once an initializer has finished running it can never be re-executed.

References

  • github.com/OpenZeppelin/openzeppelin-contracts/pull/3006
  • github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx
  • github.com/advisories/GHSA-9c22-pwxw-p6hx

Code Behaviors & Features

Detect and mitigate GMS-2021-26 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 3.2.0 before 4.4.1

Fixed versions

  • 4.4.1

Solution

Upgrade to version 4.4.1 or above.

Source file

npm/@openzeppelin/contracts-upgradeable/GMS-2021-26.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:24 +0000.