# Upgrading OpenZeppelin contracts-upgradeable from v5.x to v5.y

**URL:** <https://forum.openzeppelin.com/t/upgrading-openzeppelin-contracts-upgradeable-from-v5-x-to-v5-y/44068>\
**Category:** Contracts\
**Tags:** upgrades\
**Created:** [May 14, 2025, 12:18pm UTC](https://forum.openzeppelin.com/t/upgrading-openzeppelin-contracts-upgradeable-from-v5-x-to-v5-y/44068 "2025-05-14T12:18:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviggiano](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/aviggiano/32/22708_2.png) [@aviggiano](https://forum.openzeppelin.com/u/aviggiano)\
**Post date:** [May 14, 2025, 12:18pm UTC](https://forum.openzeppelin.com/t/upgrading-openzeppelin-contracts-upgradeable-from-v5-x-to-v5-y/44068/1 "2025-05-14T12:18:25Z")

</div>

Hello,

I am currently using contracts and contracts-upgradeable [v5.0.2](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/releases/tag/v5.0.2) and want to update to the latest [v5.3.0](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/releases/tag/v5.3.0) version in order to use `EnumerableMap.Bytes32ToAddressMap` from v5.1.0.

What are the risks from this update?

I understand storage derivation has not changed, as they both use the same EIP-7201 namespaces, which could be the most troublesome. I have also read the list of breaking changes, from patch to patch, and it seems they are mostly related to Governor, custom error identifiers, and some minor ERC1967Utils event refactors. My contracts do not rely on the first two, and the ERC1967Utils refactors seem very small.

What should I pay attention to? Is there a reference guide on how to do this upgrade? Thinking from semver alone, I wouldn't be worried, but as these contracts are the cornerstone of my upgradeable proxy system, I'd rather be on the safer side.

---

<div class="post-metadata">

**Author:** ![aviggiano](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/aviggiano/32/22708_2.png) [@aviggiano](https://forum.openzeppelin.com/u/aviggiano)\
**Post date:** [May 14, 2025, 2:34pm UTC](https://forum.openzeppelin.com/t/upgrading-openzeppelin-contracts-upgradeable-from-v5-x-to-v5-y/44068/2 "2025-05-14T14:34:17Z")

</div>

> <https://x.com/ernestognw/status/1922641414548058179>

---

<div class="post-metadata">

**Author:** ![ernestognw](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ernestognw/32/18576_2.png) [@ernestognw](https://forum.openzeppelin.com/u/ernestognw)\
**Post date:** [May 16, 2025, 3:00pm UTC](https://forum.openzeppelin.com/t/upgrading-openzeppelin-contracts-upgradeable-from-v5-x-to-v5-y/44068/4 "2025-05-16T15:00:28Z")

</div>

Hey @aviggiano, also answering here with more formal details!

We do use Semver to communicate changes to the contracts API and storage layout. This info can be found in our [Backwards Compatibility Section](https://docs.openzeppelin.com/contracts/5.x/backwards-compatibility), so it's safe to upgrade from any 5.x to a higher 5.y one.

Each release is audited, including diffs so the ERC1967Utils refactor did go through auditors at OpenZeppelin as well.

> What should I pay attention to?

For a more comprehensive response to this, I would suggest taking a look to our [Upgrades Plugins documentation](https://docs.openzeppelin.com/upgrades-plugins/). We have a couple of guides that describe what to pay attention to when [working with upgradeable](https://docs.openzeppelin.com/upgrades-plugins/writing-upgradeable#potentially-unsafe-operations) contracts, as well as detailed explanations of the [proxy upgradeability pattern](https://docs.openzeppelin.com/upgrades-plugins/proxies)

Best!
