🛡️ GHSA-wmpv-c2jp-j2xg — contracts

🟢 CVSS 2.0 — Low ✅ No Known Exploit OSV
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

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

github.com (Web)
github.com (Package)

Details

Severity LOW
CVSS Score 2.0
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2021-11-15
Updated 2026-08-12
Modified 2021-11-15
Fix URL N/A

Affected Packages

Software From version Fixed in
@openzeppelin/contracts
@openzeppelin/contracts-upgradeable

Similar Threats

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.