CVE-2023-26488
MEDIUM 6.5CVSS 3.1OpenZeppelin Contracts contains Incorrect Calculation
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.
- Published
- 3 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-682
- Also known as
- GHSA-878m-3g6q-594q
- Sources
- NVDJSONOSV GHSA-878m-3g6q-594qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openzeppelin | contractscpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:* |
>= 4.8.0, < 4.8.2 | 4.8.2 |
| NVD | openzeppelin | contracts_upgradeablecpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:* |
>= 4.8.0, < 4.8.2 | 4.8.2 |
| OSV | npm | @openzeppelin/contracts | >= 4.8.0, < 4.8.2 | 4.8.2 |
| OSV | npm | @openzeppelin/contracts-upgradeable | >= 4.8.0, < 4.8.2 | 4.8.2 |
References
- https://github.com/OpenZeppelin/openzeppelin-contracts/commit/167bf67ed3907f4a674043496019fa346cee7705 · Patch, WEB
- https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2 · Release Notes, WEB
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-878m-3g6q-594q · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-26488 · ADVISORY
- https://github.com/OpenZeppelin/openzeppelin-contracts · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 3 Mar 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Mar 2023)