Advisory

PYSEC-2026-890

Also known as: CVE-2022-31153, GHSA-8mjr-jr5h-q2xr

Summary

OpenZeppelin Contracts for Cairo account cannot process transactions on Goerli

Details

Impact
This vulnerability 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, so only goerli deployments of v0.2.0 accounts are affected.

This faulty behavior is not observed in StarkNet's testing framework, so don't rely on it passing to detect this issue on custom accounts.

Patches
This bug has been patched in v0.2.1.

References
The issue is detailed in https://github.com/OpenZeppelin/cairo-contracts/issues/386.

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-06 08:03 UTC
Modified
2026-07-07 11:45 UTC

Affected packages and fixes

openzeppelin-cairo-contracts

PyPI · All systems

Affected

  • introduced 0, fixed 0.2.1 (ecosystem)

Fixed versions

0.2.1

Fix

  • Fixed version 0.2.1
    pip install --upgrade openzeppelin-cairo-contracts==0.2.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences