[Snyk] Upgrade @openzeppelin/contracts from 4.4.1 to 4.7.3 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade @openzeppelin/contracts from 4.4.1 to 4.7.3.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version fixes:
SNYK-JS-OPENZEPPELINCONTRACTS-2980279
Why? Recently disclosed, Has a fix available, CVSS 7.7
SNYK-JS-OPENZEPPELINCONTRACTS-2964946
Why? Recently disclosed, Has a fix available, CVSS 7.7
SNYK-JS-OPENZEPPELINCONTRACTS-2958050
Why? Recently disclosed, Has a fix available, CVSS 7.7
SNYK-JS-OPENZEPPELINCONTRACTS-2958047
Why? Recently disclosed, Has a fix available, CVSS 7.7
SNYK-JS-OPENZEPPELINCONTRACTS-2965798
Why? Recently disclosed, Has a fix available, CVSS 7.7
SNYK-JS-OPENZEPPELINCONTRACTS-2336323
Why? Recently disclosed, Has a fix available, CVSS 7.7
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: @openzeppelin/contracts
Breaking changes
ECDSA
:recover(bytes32,bytes)
andtryRecover(bytes32,bytes)
no longer accept compact signatures to prevent malleability. Compact signature support remains available usingrecover(bytes32,bytes32,bytes32)
andtryRecover(bytes32,bytes32,bytes32)
.GovernorVotesQuorumFraction
. For more information visit the security advisories (1, 2, 3).GovernorVotesQuorumFraction
: Fixed quorum updates so they do not affect past proposals that failed due to lack of quorum. (#3561)ERC165Checker
: Added protection against large returndata. (#3587)LibArbitrumL2
,CrossChainEnabledArbitrumL2
: Fixed detection of cross-chain calls for EOAs. Previously, calls from EOAs would be classified as cross-chain calls. (#3578)SignatureChecker
and a high severity issue affectingERC165Checker
. For more information visit the security advisories (1, 2).SignatureChecker
: Fix an issue that causesisValidSignatureNow
to revert when the target contract returns ill-encoded data. (#3552)ERC165Checker
: Fix an issue that causessupportsInterface
to revert when the target contract returns ill-encoded data. (#3552)TimelockController
: Migrate_call
to_execute
and allow inheritance and overriding similar toGovernor
. (#3317)CrossChainEnabledPolygonChild
: replace therequire
statement with the custom errorNotCrossChainCall
. (#3380)ERC20FlashMint
: Add customizable flash fee receiver. (#3327)ERC4626
: add an extension ofERC20
that implements the ERC4626 Tokenized Vault Standard. (#3171)SafeERC20
: addsafePermit
as mitigation against phantom permit functions. (#3280)Math
: add amulDiv
function that can round the result either up or down. (#3171)Math
: Add asqrt
function to compute square roots of integers, rounding either up or down. (#3242)Strings
: add a new overloaded functiontoHexString
that converts anaddress
with fixed length of 20 bytes to its not checksummed ASCIIstring
hexadecimal representation. (#3403)EnumerableMap
: add newUintToUintMap
map type. (#3338)EnumerableMap
: add newBytes32ToUintMap
map type. (#3416)SafeCast
: add support for many more types, using procedural code generation. (#3245)MerkleProof
: addmultiProofVerify
to prove multiple values are part of a Merkle tree. (#3276)MerkleProof
: add calldata versions of the functions to avoid copying input arrays to memory and save gas. (#3200)ERC721
,ERC1155
: simplified revert reasons. (#3254, (#3438))ERC721
: removed redundant require statement. (#3434)PaymentSplitter
: addreleasable
getters. (#3350)Initializable
: refactored implementation of modifiers for easier understanding. (#3450)Proxies
: remove runtime check of ERC1967 storage slots. (#3455)Breaking changes
Initializable
: functions decorated with the modifierreinitializer(1)
may no longer invoke each other.This prerelease is now available for open review! Let us know your feedback and if you find any security issues.
We have a bug bounty with rewards of up to USD $25,000 and a special POAP for submitting a valid issue.
See the announcement for more details.
crosschain
: Add a new set of contracts for cross-chain applications.CrossChainEnabled
is a base contract with instantiations for several chains and bridges, andAccessControlCrossChain
is an extension of access control that allows cross-chain operation. (#3183)AccessControl
: add a virtual_checkRole(bytes32)
function that can be overridden to alter theonlyRole
modifier behavior. (#3137)EnumerableMap
: add newAddressToUintMap
map type. (#3150)EnumerableMap
: add newBytes32ToBytes32Map
map type. (#3192)ERC20FlashMint
: support infinite allowance when paying back a flash loan. (#3226)ERC20Wrapper
: thedecimals()
function now tries to fetch the value from the underlying token instance. If that calls revert, then the default value is used. (#3259)draft-ERC20Permit
: replaceimmutable
withconstant
for_PERMIT_TYPEHASH
since thekeccak256
of string literals is treated specially and the hash is evaluated at compile time. (#3196)ERC1155
: Add a_afterTokenTransfer
hook for improved extensibility. (#3166)ERC1155URIStorage
: add a new extension that implements a_setURI
behavior similar to ERC721's_setTokenURI
. (#3210)DoubleEndedQueue
: a new data structure that supports efficient push and pop to both front and back, useful for FIFO and LIFO queues. (#3153)Governor
: improved security ofonlyGovernance
modifier when using an external executor contract (e.g. a timelock) that can operate without necessarily going through the governance protocol. (#3147)Governor
: Add a way to parameterize votes. This can be used to implement voting systems such as fractionalized voting, ERC721 based voting, or any number of other systems. Theparams
argument added to_countVote
method, and included in the newly added_getVotes
method, can be used by counting and voting modules respectively for such purposes. (#3043)Governor
: rewording of revert reason for consistency. (#3275)Governor
: fix an inconsistency in data locations that could lead to invalid bytecode being produced. (#3295)Governor
: ImplementIERC721Receiver
andIERC1155Receiver
to improve token custody by governors. (#3230)TimelockController
: ImplementIERC721Receiver
andIERC1155Receiver
to improve token custody by timelocks. (#3230)TimelockController
: Add a separate canceller role for the ability to cancel. (#3165)Initializable
: add a reinitializer modifier that enables the initialization of new modules, added to already initialized contracts through upgradeability. (#3232)Initializable
: add an Initialized event that tracks initialized version numbers. (#3294)ERC2981
: makeroyaltiInfo
public to allow super call in overrides. (#3305)Upgradeability notice
TimelockController
: (Action needed) The upgrade from <4.6 to >=4.6 introduces a newCANCELLER_ROLE
that requires set up to be assignable. After the upgrade, only addresses with this role will have the ability to cancel. Proposers will no longer be able to cancel. Assigning cancellers can be done by an admin (including the timelock itself) once the role admin is set up. To do this, we recommend upgrading to theTimelockControllerWith46MigrationUpgradeable
contract and then calling themigrateTo46
function.Breaking changes
Governor
: Adds internal virtual_getVotes
method that must be implemented; this is a breaking change for existing concrete extensions toGovernor
. To fix this on an existing voting module extension, renamegetVotes
to_getVotes
and add abytes memory
argument. (#3043)Governor
: Addsparams
parameter to internal virtual_countVote
method; this is a breaking change for existing concrete extensions toGovernor
. To fix this on an existing counting module extension, add abytes memory
argument to_countVote
. (#3043)Governor
: Does not emitVoteCast
event when params data is non-empty; instead emitsVoteCastWithParams
event. To fix this on an integration that consumes theVoteCast
event, also fetch/monitorVoteCastWithParams
events. (#3043)Votes
: The internal virtual function_getVotingUnits
was madeview
(which was accidentally missing). Any overrides should now be updated so they areview
as well.This prerelease is now available for open review! Let us know your feedback and if you find any security issues.
We have a bug bounty with rewards of up to USD $25,000 and a special POAP for submitting a valid issue.
See the announcement for some more details.
Read more
This prerelease is now available for review! Let us know your feedback and if you find any security issues.
We have a bug bounty with rewards of up to USD $25,000 and a special POAP for submitting a valid issue.
See the announcement for some more details.
GovernorCompatibilityBravo
: Fix error in the encoding of calldata for proposals submitted through the compatibility interface with explicit signatures. (#3100)Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:![](https://camo.githubusercontent.com/7beed2089cb47bb9b2120c4afbcc3d0ccdd0154a49633a2490504e3cad5574f1/68747470733a2f2f6170692e7365676d656e742e696f2f76312f706978656c2f747261636b3f646174613d65794a33636d6c305a55746c65534936496e4a79576d785a634564485932527954485a7362306c596430645563566734576b4652546e4e434f5545774969776959573576626e6c746233567a535751694f694a6c4e47553459545668597930794d5441354c54526a5a6d4d744f4459325a69316a5a6d5a6a5a6a4a69597a49324f4455694c434a6c646d567564434936496c425349485a705a58646c5a434973496e42796233426c636e52705a584d694f6e736963484a4a5a434936496d55305a5468684e57466a4c5449784d446b744e474e6d597930344e6a5a6d4c574e6d5a6d4e6d4d6d4a6a4d6a59344e534a3966513d3d)
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs