OpenZeppelin Explained: The Library Behind Smart Contracts
On this page
OpenZeppelin is the name of a blockchain security company and, for developers, the name of the open-source library it maintains, OpenZeppelin Contracts. A library, in programming, is a set of ready-made pieces of code that other projects reuse instead of writing everything from scratch. In OpenZeppelin's case, the pieces are smart contracts: tokens, permission rules, voting, vaults. This post explains, from OpenZeppelin's documentation, its GitHub repository, announcements by the company and by S&P Global, and the security advisories read on 27/11/2026, what the library is, which version is the audited one, how the Wizard and upgradeable contracts work, what happened to Defender and to the company, and what using a well-known library does not guarantee.
In short
- In its documentation's words, OpenZeppelin Contracts is "a library of modular, reusable, secure smart contracts for the Ethereum network, written in Solidity". The code is released under the MIT licence.
- On 27/11/2026, the newest version is 5.7.0, from 29/07/2026, still unaudited according to the project itself. The default install delivers 5.6.1, which OpenZeppelin labels as audited.
- An upgradeable contract keeps the same address and swaps the code it runs. OpenZeppelin's own documentation says that doing this securely "is a difficult task".
- OpenZeppelin scheduled the shutdown of Defender, its hosted operations platform, for 01/07/2026. S&P Global completed its acquisition of the company on 26/10/2026, without disclosing the price.
- The library published 20 security advisories from 26/08/2021 to 17/07/2025, two of them critical, both in 2021. Using well-known pieces does not replace reviewing the contract built with them.
| Piece | What it is | What it does not guarantee |
|---|---|---|
| Contracts | Solidity contract library, MIT licence | That the contract built with it is correct |
| Wizard | Code generator built from the library's pieces | An audit of the final contract |
| Upgradeable proxy | Fixed address, swappable logic | That whoever controls the swap is trustworthy |
| Defender | Hosted platform, shutdown scheduled for 01/07/2026 | That it runs after that date |
| Security advisories | 20 published from 2021 to 2025 | That no undiscovered flaws remain |
What OpenZeppelin Contracts is
A smart contract is a program published on a blockchain that runs its rules on its own whenever someone calls it. The full explanation, including what tends to go wrong, is in Smart Contracts Explained: What They Are and What Can Fail. On Ethereum, these programs run on the EVM, the Ethereum Virtual Machine, the environment that executes contracts on Ethereum and on the networks compatible with it. The language most often used to write them is Solidity, covered in Solidity Explained: How It Compares With Rust and Move.
The documentation defines the library like this: "OpenZeppelin Contracts is a library of modular, reusable, secure smart contracts for the Ethereum network, written in Solidity." The repository README, the project's front-page text, sums it up in one line: "A library for secure smart contract development." The word "secure" is the project's description of itself, and the section on security advisories below shows what that means in practice.
The documentation lists implementations of Ethereum token standards, known as ERCs, the proposals that define those standards:
- ERC-20: the fungible token standard, where every unit is worth the same as any other.
- ERC-721: the non-fungible token standard, the NFT, where every token is unique.
- ERC-1155: a standard that bundles several token types into a single contract.
- ERC-4626: a tokenised vault standard, where a deposit becomes a token representing the depositor's share.
Beyond tokens, the library includes pieces for access control (who may call each function), governance (votes recorded on the network) and accounts, tied to what is called account abstraction, where the user's wallet itself is a contract with programmable rules.
Licence and public numbers
The repository's licence file reads "The MIT License (MIT)" and "Copyright (c) 2016-2026 Zeppelin Group Ltd". MIT is a short, permissive open-source licence: anyone may use, modify and redistribute the code, including in commercial products, as long as the copyright notice is kept. What that means, and what it does not, is in Open Source Crypto: What It Means and Who Controls the Code.
According to GitHub, on 27/11/2026, the repository was created on 01/08/2016 and had 27,372 stars, marks from users who follow the project, and 12,415 forks, copies of the repository made by other accounts. On npm, the package manager JavaScript developers download libraries from, the @openzeppelin/contracts package had 6,256,623 downloads between 28/10/2026 and 26/11/2026. npm downloads count installations, including those made by continuous integration robots that reinstall everything on every test run. They are not a count of projects or users.
The companies also publish their own usage figures. In its 26/10/2026 press release, S&P Global wrote that the library's contracts "underpin over $38 trillion in value transferred". It is a self-reported figure with no published methodology, it changes with each announcement, and it measures value that passed through contracts using the library. It is not value held, nor value protected.
The company behind it
On its audits page, OpenZeppelin says: "In 2015, we pioneered smart contract security by introducing the OpenZeppelin Contracts library". The same page says the library "was soon followed by establishing the industry's first professionalized security audit group". "Pioneered" and "first" are the company's own claims. Audits are requested through a form, with "Request a Security Audit" and "Talk to a Security Expert" buttons, and no published price. How an audit works, and what it leaves out, is in Smart Contract Audits: What They Cost and What They Miss.
Which version is current
The answer has two parts. According to the GitHub releases list, read on 27/11/2026, the newest published version is 5.7.0, from 29/07/2026, after a release candidate on 15/07/2026. Before that came 5.6.1 (27/02/2026), 5.6.0 (25/02/2026), 5.5.0 (31/10/2025) and 5.4.0 (17/07/2025).
The version a developer gets when installing the package is a different one, though. On npm, each package has labels, called tags, that say which version ships on each channel. On 27/11/2026, the latest tag, which is the one installed by default, pointed to 5.6.1, and the dev tag pointed to 5.7.0. The README explains the difference:
latest: "Stable, audited versions of the package."dev: "Versions that are finalized and feature-complete but have not yet been audited."
So on 27/11/2026 the newest version is 5.7.0, not yet audited according to the project, and the latest audited one, installed by default, is 5.6.1. When a project says it "uses OpenZeppelin", the useful question is which version, and whether it is one of the audited ones.
Get the Seed backup checklist
The seed is the wallet. A bad backup only shows up on the day you need it. Check every item before moving meaningful value into self-custody. Along with it, Vault alerts on the Security and self-custody topic.
The Wizard: a contract built from pieces
Contracts Wizard is a contract generator that runs in the browser. Its README describes it as "a web application to interactively build a contract out of components from OpenZeppelin Contracts". In practice, the user picks a contract type, such as an ERC-20 token, ticks the options they want, and the page writes the code using the library's pieces.
The same README says: "The resulting code is ready to be compiled and deployed, or it can serve as a starting point and customized further". Compiling means turning readable code into instructions the machine runs; deploying means publishing the contract on the network. On 27/11/2026, the Wizard site had tabs for Solidity, Cairo, Confidential, Polkadot, Stellar, Stylus, TRON and Uniswap Hooks, meaning other languages and networks beyond Ethereum. The Wizard's own code uses the AGPL-3.0 licence, unlike the library's MIT.
The point to keep in mind is simple: the Wizard generates code from the library's pieces, but that is not an audit of the final contract. The choices made by whoever configures it are written into the contract, and the tool does not judge whether they make sense for the project.
Upgradeable contracts and proxies, in plain words
OpenZeppelin's documentation starts from an EVM rule: "By design, smart contracts are immutable." Once published, a contract's code does not change. The proxy pattern exists to work around that. A proxy is a stand-in: a contract that answers on behalf of another.
The design has two parts. The proxy is the address users call, and it is where the data lives, such as balances and settings. The logic contract holds the code that processes the calls. The documentation sums it up: "The key concept to understand is that the logic contract can be replaced while the proxy, or the access point is never changed." In plain words, the address stays the same, but whoever controls the upgrade can swap the code it runs.
That control, according to the documentation, can be held "by any type of governance, be it a multi-sig wallet, a simple address or a complex DAO". A multisig is a wallet that needs several signatures to act. A DAO is an organisation where decisions go through a vote by token holders. A simple address is a single key. There is also the timelock, a contract that enforces a delay between announcing a change and executing it, so users can see what will change beforehand.
The library offers three main formats, which differ in where the upgrade rule sits: TransparentUpgradeableProxy, UUPSUpgradeable and BeaconProxy, the last one used when several proxies point to a single reference and are upgraded at once. There are also Clones, cheap copies that are not upgradeable. In the version 5 reference, OpenZeppelin says "our recommendation is now shifting towards UUPS proxies, which are both lightweight and versatile".
Two technical rules show why this is delicate. In upgradeable contracts, the constructor, the function that runs once when the contract is created, does not work, so there is a separate package, @openzeppelin/contracts-upgradeable, where "constructors are replaced by initializer functions". And the README warns: "For upgradeable contracts, the storage layout of different major versions should be assumed incompatible". The storage layout is the order in which a contract keeps its data; switching major versions carelessly can misalign that order. The documentation itself sums it up: "Using upgradeable proxies correctly and securely is a difficult task that requires deep knowledge of the proxy pattern, Solidity, and the EVM."
For anyone using a protocol, the remaining question is who holds the upgrade key: a multisig, a timelock, a DAO or a single address. Whoever holds that power can change the rules of the contract where your money sits.
The end of Defender
Defender was OpenZeppelin's hosted platform for running contracts already in production: sending transactions automatically, through a service called a relayer, and tracking events and alerts, through a monitor. On 30/06/2025, in the post "Doubling Down on Open Source Tools and Phasing Out Defender", signed by Christian Santagata, the company said: "we're now officially announcing a phased sunset of the Defender platform, with its final shutdown planned for July 1, 2026."
The announcement's timeline had two dates:
- 30/06/2025: "As of today, new user sign-ups have been disabled."
- 01/07/2026: "The Defender platform will officially retire."
The FAQ published the same day, signed by Bram Hoogenkamp, said Defender would remain "fully operational, with critical patches and support, through July 1, 2026", and that the suggested migration was to open-source Relayer and Monitor, hosted by the user: "Instead of a hosted dashboard, you'll use CLI, SDK and API's to interact with the infrastructure instances." The open tools use the AGPL v3 licence. For those who did not want to run the infrastructure, the company offered a "Managed Service".
What can be seen on 27/11/2026: the Defender documentation addresses redirect to the documentation home page, which lists Relayer, Monitor, UI Builder and Role Manager and no longer lists Defender. The app address still responds, with an empty page. We found no OpenZeppelin statement, after 01/07/2026, confirming that the shutdown took place on that date. What can be stated is that the company scheduled the shutdown for 1 July 2026 and that the current documentation no longer covers Defender.
The S&P Global acquisition
On 17/09/2026, OpenZeppelin published the announcement "S&P Global Enters Agreement to Acquire OpenZeppelin". It said the deal was subject to closing conditions and that "Financial terms of the transaction were not disclosed".
On 26/10/2026, S&P Global announced from New York that it "has completed its acquisition of OpenZeppelin", noting that the deal was "first announced on September 17, 2026". According to the press release:
- OpenZeppelin "will continue to operate as its own business unit under the OpenZeppelin name".
- The founder, Demian Brener, stays in charge, "reporting to Yann Le Pallec, President, S&P Global Ratings".
- Financial terms were not disclosed, and the deal is "not expected to have a material impact on the financial results of S&P Global".
On the library, both companies said the same thing in writing. The 17/09/2026 announcement states that the libraries "remain open source, free, and publicly maintained on GitHub" and that "Every released version remains open source permanently and cannot be withdrawn by anyone, and future versions stay open source". The same text says "All security audits, engineering work, and ecosystem programs continue as they do today". In the closing release, Brener repeats: "OpenZeppelin Contracts remain open source, free and publicly maintained."
The library's own security advisories
When OpenZeppelin finds or receives a flaw in the library, it publishes a security advisory in the repository itself, through GitHub's Security Advisories system. On 27/11/2026, the list held 20 advisories, from 26/08/2021 to 17/07/2025, with severity assigned by OpenZeppelin itself: 2 critical, 3 high, 8 medium and 7 low. No new advisory appeared between 18/07/2025 and 27/11/2026.
Four dated examples:
- TimelockController, critical, 26/08/2021: the flaw "allowed an actor with the executor role to take immediate control of the timelock, by resetting the delay to 0". In other words, whoever held the role of executing actions could set the waiting period to zero. Fixed in versions 4.3.1 and 3.4.2. The advisory credits the discovery to "an anonymous white hat hacker through Immunefi".
- UUPSUpgradeable, critical, 14/09/2021: contracts "using
UUPSUpgradeablemay be vulnerable to an attack affecting uninitialized implementation contracts", meaning logic contracts that had not gone through their initialisation function. Fixed in 4.3.2. - ECDSA, high, 10/08/2022: the signature verification function was "vulnerable to a kind of signature malleability", where a valid signature can be rewritten into another form that is also accepted. Fixed in 4.7.3.
- Bytes.lastIndexOf, low, 17/07/2025: an out-of-bounds memory read in a specific case, in versions from 5.2.0, fixed in 5.4.0.
The repository's security policy asks for flaws to be reported through Immunefi, a bug bounty platform, meaning a programme that pays a reward to whoever finds and reports a flaw. Fixes are published "as an advisory on this repository". Not every older version gets fixes: according to the policy table, the 5.x series receives all of them, and the 4.9 and 3.4 series only the critical ones.
The advisories read for this post do not mention any loss of funds. What they show is that a library used at scale also had flaws, found and fixed by its own maintainer, and that anyone still on an older version needs to know which fixes it received.
What using a library does not guarantee
Using OpenZeppelin cuts the amount of new code in a project, because standards such as ERC-20 come ready-made. But a contract's security depends on much more than the pieces:
- The surrounding code: the project's own logic, which connects the pieces, is written by the team and does not come from the library.
- The configuration: who gets each permission, who can create tokens, who can pause.
- The upgrade power: in an upgradeable contract, whoever controls the code swap can change the rules later.
- The version: an unaudited version, or an old one without the fixes, changes the picture.
- The compiler: Solidity itself keeps a public list of known bugs, explained in Solidity Explained: How It Compares With Rust and Move.
Security badges and scores also measure specific things, as shown in CertiK Explained: What the Skynet Score Measures and Misses. "Uses OpenZeppelin" is a good start to a conversation about a project, not a conclusion.
What to check
- If a project says it uses OpenZeppelin, find out which version and whether it is one of the audited ones: on 27/11/2026, 5.6.1 is the default audited version and 5.7.0 is not yet audited.
- If the contract is upgradeable, find out who controls the upgrade: a single key, a multisig, a timelock or a DAO.
- If the contract came out of the Wizard, remember that the generator assembles pieces and does not audit the result.
- If you used Defender, check the migration path OpenZeppelin itself points to, the open-source Relayer and Monitor.
- If a project cites an audit, ask by whom, of which version of the code and what was left out of scope.
How a blockchain records and runs contracts, from the start, is in Smart Contracts Explained: What They Are and What Can Fail. What an audit leaves out is in Smart Contract Audits: What They Cost and What They Miss.
Crypto assets carry high risk, including significant volatility and the possibility of losing the capital invested, and no form of custody changes that. Vault Capital is a securities consultancy authorized by the CVM under CVM Resolution 19/2021 and works on the principle of advice, never custody: assets stay on the client's own exchanges and wallets. If you want to set up your own wallet with hands-on guidance, the Self-Custody Immersion is built for that, and the FAQ explains how Vault works without custody of client assets.
Who decides what goes into open-source code, and what changes when a company is acquired, is covered in Open Source Crypto: What It Means and Who Controls the Code.
Frequently asked questions
What is OpenZeppelin?
It is a blockchain security company that maintains OpenZeppelin Contracts, an open-source, MIT-licensed library of smart contracts written in Solidity, and that also sells audits. Since 26/10/2026, the company has belonged to S&P Global and operates as its own business unit, under the same name.
Is OpenZeppelin Contracts free?
Yes. The code is MIT-licensed, which allows use, modification and redistribution. During the S&P Global acquisition, both companies said in writing that the library remains open source, free and publicly maintained on GitHub, and that released versions cannot be withdrawn.
What is the current version of OpenZeppelin Contracts?
On 27/11/2026, the newest is 5.7.0, from 29/07/2026, labelled by the project as final but not yet audited. The version installed by default on npm is 5.6.1, from 27/02/2026, which OpenZeppelin labels as stable and audited.
What is the OpenZeppelin Wizard?
It is a website where the user picks a contract type and options, and the tool writes the code using the library's pieces. The output is ready to compile and deploy, or to use as a starting point. Generating a contract with the Wizard is not the same as auditing it.
Does OpenZeppelin Defender still work?
OpenZeppelin announced the end of Defender on 30/06/2025, closed new sign-ups the same day and scheduled the shutdown for 01/07/2026. On 27/11/2026, the documentation no longer lists Defender and points to the open-source Relayer and Monitor. We found no later statement confirming the shutdown on that date.
Does using OpenZeppelin make a contract secure?
Not on its own. The library reduces new code, but it had 20 security advisories from 2021 to 2025, two of them critical. A contract's security also depends on the surrounding code, the permissions, who controls upgrades, the version used and the compiler.
Let's talk
Libraries and audits look after protocol code; the key to your own wallet is still your responsibility. If you want to learn to set up and test your own wallet safely, Vault's Self-Custody Immersion teaches the process hands-on, in person, with the setup validated by a specialist.
Want to hold your crypto safely, on your own?
Vault's Self-Custody Immersion teaches wallets, seed backups and succession planning, hands on.
Learn about the ImmersionPath · Security and self-custody
Start the Security and self-custody path
Self-custody vs exchange: where to keep crypto in 2026
Self-custody vs exchange compared by counterparty risk, fees, Brazilian tax reporting and inheritance, with the FTX and Mt. Gox cases and a rule by amount.