A vulnerability in OpenZeppelin Confidential Contracts, an experimental library for developing applications on the Zama fhEVM, could allow users to transfer underlying tokens without receiving corresponding confidential wrapped tokens due to a failure in handling overflowing internal _mint operations. This issue was fixed in version 0.3.1. The vulnerability arises from the ERC7984 contract tracking confidential total supply with an euint64 value, which can overflow and fail silently. The wrap and onTransferReceived functions in contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol did not handle that failure. With the default rate(), the wrapper fills after approximately 18.4
OpenZeppelin Contracts Wizard, a web application for interactively building contracts from OpenZeppelin Contracts components, is affected by a code injection vulnerability. Versions prior to 0.10.9 generate a Hardhat test file by directly interpolating user-supplied input into TypeScript string literals without proper escaping. This allows attackers to craft malicious URLs that, when downloaded and run, execute injected Node.js code with the developer's local OS privileges. The vulnerability impacts ERC20, ERC721, and ERC1155 contracts. Developers should update to version 0.10.9 or later to prevent code injection attacks. The fix involves proper escaping of user-supplied input in the Hardhat test file generation process. To verify, defenders should review the official advisory, assess their exposure, and validate their update process. OpenZeppelin has provided a patched version (0.10.9) that properly escapes user-supplied input.