🛡️ GHSA-wmpv-c2jp-j2xg — contracts
Description
ERC1155Supply vulnerability in OpenZeppelin Contracts
When ERC1155 tokens are minted, a callback is invoked on the receiver of those tokens, as required by the spec. When including the ERC1155Supply extension, total supply is not updated until after the callback, thus during the callback the reported total supply is lower than the real number of tokens in circulation.
Impact
If a system relies on accurately reported supply, an attacker may be able to mint tokens and invoke that system after receiving the token balance but before the supply is updated.
Patches
A fix is included in version 4.3.3 of @openzeppelin/contracts and @openzeppelin/contracts-upgradeable.
Workarounds
If accurate supply is relevant, do not mint tokens to untrusted receivers.
Credits
The issue was identified and reported by @ChainSecurityAudits.
For more information
Read [TotalSupply Inconsistency in ERC1155 NFT Tokens](https://medium.com/chainsecurity/totalsupply-inconsistency-in-erc1155-nft-tokens-8f8e3b29f5aa) by @ChainSecurityAudits for a more detailed breakdown.
If you have any questions or comments about this advisory, email us at security@openzeppelin.com.
Affected software
GHSA-wmpv-c2jp-j2xg is recorded against 2 packages.
- @openzeppelin/contracts
- @openzeppelin/contracts-upgradeable
Timeline and source
Published on 15 November 2021. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| @openzeppelin/contracts | — | — |
| @openzeppelin/contracts-upgradeable | — | — |
References
Similar Threats
- Unknown CVE-2025-54070
- Medium CVE-2024-27094
- Medium CVE-2023-49798
- Medium CVE-2023-40014
- Medium CVE-2023-34459
More GHSA W advisories
Browse all of GHSA W in the advisory index.
- GHSA-wm7r-3qxj-5xgq
- GHSA-wm8x-php5-hvq6
- GHSA-wm25-j4gw-6vr3
- GHSA-wm45-qh3g-v83f
- GHSA-wm63-7627-ch33
- GHSA-wmgj-hrx3-23gj
- GHSA-wmjr-v86c-m9jj
- GHSA-wmm6-pgp8-29hg
- GHSA-wp4m-7hpj-8qp8
- GHSA-wp8j-c736-c5r3
- GHSA-wp87-mgvq-5j93
- GHSA-wpfr-6297-9v57
- GHSA-wpqr-6v78-jr5g
- GHSA-wpr2-j6gr-pjw9
- GHSA-wprj-9cvc-5w37
- GHSA-wpvf-5mc3-hv6m
Free Vulnerability Check
Is your site affected by GHSA-wmpv-c2jp-j2xg?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-wmpv-c2jp-j2xg and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.