CVE-2021-39167Openzeppelin Contracts
Critical 9.8 No auth needed
Follow: this CVE · Openzeppelin · Openzeppelin Contracts We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Aug 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-269
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
OpenZepplin is a library for smart contract development. In affected versions a vulnerability in TimelockController allowed an actor with the executor role to escalate privileges. Further details about the vulnerability will be disclosed at a later date. As a workaround revoke the executor role from accounts not strictly under the team's control. We recommend revoking all executors that are not also proposers. When applying this mitigation, ensure there is at least one proposer and executor remaining.
What to do
- Apply the vendor's security update for Contracts.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @openzeppelin/contracts |
≥ 4.0.0 < 4.3.1 |
4.3.1 |
npm install @openzeppelin/contracts@4.3.1 |
| npm | @openzeppelin/contracts |
≥ 3.3.0 < 3.4.2 |
3.4.2 |
npm install @openzeppelin/contracts@3.4.2 |
Per OSV / GitHub Advisories (GHSA-fg47-3c2x-m2wr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openzeppelin | contracts | ≥ 3.3.0 < 3.4.2 |
| openzeppelin | contracts | ≥ 4.0.0 < 4.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory