CVE-2022-31153Openzeppelin Contracts
Medium 6.5
Follow: this CVE · Openzeppelin · Openzeppelin Contracts We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- Yes
- Published
- Jul 15, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
What happens
OpenZeppelin Contracts for Cairo is a library for contract development written in Cairo for StarkNet, a decentralized ZK Rollup. Version 0.2.0 is vulnerable to an error that renders account contracts unusable on live networks. This issue affects all accounts (vanilla and ethereum flavors) in the v0.2.0 release of OpenZeppelin Contracts for Cairo, which are not whitelisted on StarkNet mainnet. Only goerli deployments of v0.2.0 accounts are affected. This faulty behavior is not observed in StarkNet's testing framework. This bug has been patched in v0.2.1.
What to do
- Apply the vendor's security update for Contracts.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | openzeppelin-cairo-contracts |
< 0.2.1 |
0.2.1 |
pip install "openzeppelin-cairo-contracts>=0.2.1" |
| PyPI | openzeppelin-cairo-contracts |
< 0.2.1 |
0.2.1 |
pip install "openzeppelin-cairo-contracts>=0.2.1" |
Per OSV / GitHub Advisories (GHSA-8mjr-jr5h-q2xr, PYSEC-2026-890). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openzeppelin | contracts | 0.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory