npmWorst: Critical22 advisories
@openzeppelin/contracts-upgradeable: known vulnerabilities
@openzeppelin/contracts-upgradeable has 22 reviewed security advisories in the GitHub Advisory Database — 3 critical, 5 high, 12 moderate, 2 low. The most recent was published 2025-07-17. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the @openzeppelin/contracts-upgradeable versions running across your servers, containers and images, and ranks what to patch first.
How to fix @openzeppelin/contracts-upgradeable
Upgrade @openzeppelin/contracts-upgradeable to a release at or above the fixed version shown for each advisory below. For npm:
npm install @openzeppelin/contracts-upgradeable@5.4.0 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (22)
OpenZeppelin Contracts Bytes's lastIndexOf function with position argument performs out-of-bound memory access on empty buffers
Moderate 0.0 CWE-125
— Affected: from 5.2.0 up to 5.4.0. Fixed in 5.4.0. Published 2025-07-17. GHSA-9rcw-c2f9-2j55 · CVE-2025-54070
OpenZeppelin Contracts base64 encoding may read from potentially dirty memory
Moderate 6.5 CWE-125
— Affected: from 4.5.0 up to 4.9.6. Fixed in 4.9.6. Published 2024-03-21. GHSA-9vx6-7xxf-x967 · CVE-2024-27094
OpenZeppelin Contracts and Contracts Upgradeable duplicated execution of subcalls in v4.9.4
Moderate 5.9 CWE-670
— Affected: from 4.9.4 up to 4.9.5. Fixed in 4.9.5. Published 2023-12-09. GHSA-699g-q6qh-q4v8 · CVE-2023-49798
OpenZeppelin Contracts vulnerable to Improper Escaping of Output
Moderate 5.3 CWE-116
— Affected: from 4.0.0 up to 4.9.3. Fixed in 4.9.3. Published 2023-08-10. GHSA-g4vp-m682-qqmp · CVE-2023-40014
OpenZeppelin Contracts using MerkleProof multiproofs may allow proving arbitrary leaves for specific trees
Moderate 5.3 CWE-354
— Affected: from 4.7.0 up to 4.9.2. Fixed in 4.9.2. Published 2023-06-16. GHSA-wprv-93r4-jj2p · CVE-2023-34459
OpenZeppelin Contracts's governor proposal creation may be blocked by frontrunning
Moderate 5.3 CWE-862
— Affected: from 4.3.0 up to 4.9.1. Fixed in 4.9.1. Published 2023-06-07. GHSA-5h3x-9wvq-w4m2 · CVE-2023-34234
OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
Moderate 5.3 CWE-436
— Affected: from 3.2.0 up to 4.8.3. Fixed in 4.8.3. Published 2023-04-17. GHSA-mx2q-35m2-x2rh · CVE-2023-30541
GovernorCompatibilityBravo may trim proposal calldata
High 8.8 CWE-20
— Affected: from 4.3.0 up to 4.8.3. Fixed in 4.8.3. Published 2023-04-16. GHSA-93hq-5wgc-jc82 · CVE-2023-30542
OpenZeppelin Contracts contains Incorrect Calculation
Moderate 6.5 CWE-682
— Affected: from 4.8.0 up to 4.8.2. Fixed in 4.8.2. Published 2023-03-03. GHSA-878m-3g6q-594q · CVE-2023-26488
OpenZeppelin Contracts initializer reentrancy may lead to double initialization
Moderate 5.6 CWE-665
— Affected: from 3.2.0 up to 4.4.1. Fixed in 4.4.1. Published 2022-11-04. GHSA-9c22-pwxw-p6hx · CVE-2021-46320
OpenZeppelin Contracts vulnerable to ECDSA signature malleability
High 7.9 CWE-354
— Affected: from 4.1.0 up to 4.7.3. Fixed in 4.7.3. Published 2022-08-15. GHSA-4h98-2769-gh6h · CVE-2022-35961
OpenZeppelin Contracts ERC165Checker unbounded gas consumption
Moderate 5.3 CWE-400 CWE-770
— Affected: from 3.2.0 up to 4.7.2. Fixed in 4.7.2. Published 2022-08-01. GHSA-7grf-83vw-6f5x · CVE-2022-35915
OpenZeppelin Contracts's Cross chain utilities for Arbitrum L2 see EOA calls as cross chain calls
Moderate 5.3 CWE-669
— Affected: from 4.6.0 up to 4.7.2. Fixed in 4.7.2. Published 2022-08-01. GHSA-9j3m-g383-29qr · CVE-2022-35916
OpenZeppelin Contracts's GovernorVotesQuorumFraction updates to quorum may affect past defeated proposals
High 7.5 CWE-682
— Affected: from 4.3.0 up to 4.7.2. Fixed in 4.7.2. Published 2022-08-01. GHSA-xrc4-737v-9q75 · CVE-2022-31198
OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers
High 7.5 CWE-20 CWE-347
— Affected: from 4.1.0 up to 4.7.1. Fixed in 4.7.1. Published 2022-07-22. GHSA-4g63-c64m-25w9 · CVE-2022-31172
OpenZeppelin Contracts's ERC165Checker may revert instead of returning false
High 7.5 CWE-20 CWE-252
— Affected: from 4.0.0 up to 4.7.1. Fixed in 4.7.1. Published 2022-07-22. GHSA-qh9x-gcfh-pcrw · CVE-2022-31170
Inconsistent storage layout for ERC2771ContextUpgradeable
Low
— Affected: from 4.0.0 up to 4.3.0. Fixed in 4.3.0. Published 2022-03-14. GHSA-7j52-6fjp-58gr
GovernorCompatibilityBravo incorrect ABI encoding may lead to unexpected behavior
Moderate
— Affected: from 4.3.0 up to 4.4.2. Fixed in 4.4.2. Published 2022-01-13. GHSA-m6w8-fq7v-ph4m
ERC1155Supply vulnerability in OpenZeppelin Contracts
Low
— Affected: from 4.2.0 up to 4.3.3. Fixed in 4.3.3. Published 2021-11-15. GHSA-wmpv-c2jp-j2xg
UUPSUpgradeable vulnerability in @openzeppelin/contracts
Critical 9.8 CWE-665
— Affected: from 4.1.0 up to 4.3.2. Fixed in 4.3.2. Published 2021-11-12. GHSA-5vp3-v4hc-gx76 · CVE-2021-41264
UUPSUpgradeable vulnerability in @openzeppelin/contracts-upgradeable
Critical
— Affected: from 4.1.0 up to 4.3.2. Fixed in 4.3.2. Published 2021-09-15. GHSA-q4h9-46xg-m3x9
TimelockController vulnerability in OpenZeppelin Contracts
Critical 10.0 CWE-269
— Affected: from 3.3.0 up to 3.4.2. Fixed in 3.4.2. Published 2021-08-27. GHSA-vrw4-w73r-6mm8 · CVE-2021-39168
Find @openzeppelin/contracts-upgradeable across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.