CVE-2023-26488Openzeppelin 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
- 0.8% probability of exploitation in 30 days · percentile 54
- Auth required
- Yes
- Published
- Mar 3, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-682
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
OpenZeppelin Contracts is a library for secure smart contract development. The ERC721Consecutive contract designed for minting NFTs in batches does not update balances when a batch has size 1 and consists of a single token. Subsequent transfers from the receiver of that token may overflow the balance as reported by `balanceOf`. The issue exclusively presents with batches of size 1. The issue has been patched in 4.8.2.
What to do
- Apply the vendor's security update for Contracts.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @openzeppelin/contracts |
≥ 4.8.0 < 4.8.2 |
4.8.2 |
npm install @openzeppelin/contracts@4.8.2 |
| npm | @openzeppelin/contracts-upgradeable |
≥ 4.8.0 < 4.8.2 |
4.8.2 |
npm install @openzeppelin/contracts-upgradeable@4.8.2 |
Per OSV / GitHub Advisories (GHSA-878m-3g6q-594q). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openzeppelin | contracts | ≥ 4.8.0 < 4.8.2 |
| openzeppelin | contracts_upgradeable | ≥ 4.8.0 < 4.8.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Third Party Advisory