Incorrect Calculation Affecting @openzeppelin/contracts package, versions >=4.8.0 <4.8.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-OPENZEPPELINCONTRACTS-3339525
  • published5 Mar 2023
  • disclosed3 Mar 2023
  • creditUnknown

Introduced: 3 Mar 2023

CVE-2023-26488  (opens in a new tab)
CWE-682  (opens in a new tab)

How to fix?

Upgrade @openzeppelin/contracts to version 4.8.2 or higher.

Overview

@openzeppelin/contracts is a library for contract development.

Affected versions of this package are vulnerable to Incorrect Calculation. The ERC721Consecutive contract designed for minting NFTs in batches does not update balances when a batch have size 1 and consists of a single token. Subsequent transfers from the receiver of that token may overflow the balance as reported by balanceOf.

CVSS Scores

version 3.1