@openzeppelin/contracts
Affected
- introduced
4.8.0, fixed4.8.2(semver)
Fixed versions
4.8.2
Fix
- Fixed version
4.8.2npm install @openzeppelin/[email protected]
Advisory
Also known as: CVE-2023-26488
OpenZeppelin Contracts contains Incorrect Calculation
Impact
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.
Patches
The issue has been patched in 4.8.2.
<!-- ### References -->
Medium Basis: The source's own band: MODERATE
4.8.0, fixed 4.8.2 (semver)4.8.2
4.8.2npm install @openzeppelin/[email protected]4.8.0, fixed 4.8.2 (semver)4.8.2
4.8.2npm install @openzeppelin/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0