Line Reference: package.json#L68
I can verify that the installed version is 4.2.0 by executing the following commands:
Update the versions of @openzeppelin/contracts and @openzeppelin/contracts-upgradeable to be the latest in package.json. I also recommend double checking the versions of other dependencies as a precaution, as they may include important bug fixes.
