Live threats

All CVEs / Openzeppelin

CVE-2021-41264Openzeppelin Contracts

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
Nov 12, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-665
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

OpenZeppelin Contracts is a library for smart contract development. In affected versions upgradeable contracts using `UUPSUpgradeable` may be vulnerable to an attack affecting uninitialized implementation contracts. A fix is included in version 4.3.2 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable`. For users unable to upgrade; initialize implementation contracts using `UUPSUpgradeable` by invoking the initializer function (usually called `initialize`). An example is provided [in the forum](https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301).

Original NVD text.

What to do

  1. Apply the vendor's security update for Contracts.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @openzeppelin/contracts ≥ 4.1.0 < 4.3.2 4.3.2 npm install @openzeppelin/contracts@4.3.2
npm @openzeppelin/contracts-upgradeable ≥ 4.1.0 < 4.3.2 4.3.2 npm install @openzeppelin/contracts-upgradeable@4.3.2

Per OSV / GitHub Advisories (GHSA-5vp3-v4hc-gx76). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
openzeppelincontracts≥ 4.1.0 < 4.3.2

Official sources

References

Links published by the sources. Open them with care.