CVE-2026-73645: ERC7984ERC20Wrapper Once A Wrapper Is Filled, Vulnerability

MODERATE
Advisory Identifier: GHSA-hqf9-8xv5-x8xw
CWE-190
Published
Advisory Summary

CVE-2026-73645 is a MODERATE once a wrapper is filled, vulnerability (CWE-190: Integer Overflow or Wraparound) affecting ERC7984ERC20Wrapper libraries in the npm ecosystem. The issue involves once a wrapper is filled, subsequent wrap requests do not revert and result in loss of funds.. Remediation is available by upgrading affected packages to version 0.3.1.

CVE-2026-73645 at a Glance

CVE Identifier CVE-2026-73645
GHSA Identifier GHSA-hqf9-8xv5-x8xw
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product ERC7984ERC20Wrapper
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-73645

To remediate this vulnerability, upgrade all affected ERC7984ERC20Wrapper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@openzeppelin/confidential-contracts fixed: 0.3.1
npm install @openzeppelin/confidential-contracts@0.3.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @openzeppelin/confidential-contracts

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-73645, inspect your project dependencies using npm:

npm ls @openzeppelin/confidential-contracts

Analyze the terminal output to locate any version of ERC7984ERC20Wrapper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.1), your application is affected.

Note: The npm ls @openzeppelin/confidential-contracts command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In ERC7984ERC20Wrapper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The `ERC7984` contract tracks total supply using a confidential `euint64` value. If a call to the internal `_mint` function would result in the total supply overflowing, the call fails silently. The `wrap` and `onTransferReceived` functions in `ERC7984ERC20Wrapper` assume that `_mint` won't fail silently and do not check the return value. If the mint function fails silently, users do not receive the confidential wrapped token but still send the underlying token, resulting in a loss of funds. By default (without overriding `rate()`, the wrapper fills up after wrapping ~18.4 trillion tokens. There are very few tokens of value with sufficient total supply to result in the filling of the wrapper. That said, we recommend upgrading to `0.3.1` to remove this issue. ### Patches This issue has been patched in the `0.3.1` release.

CVE-2026-73645 Affected ERC7984ERC20Wrapper Versions

1 component(s)
Fixed Versions:
0.3.1
Product / Package Ecosystem Affected Versions Fixed Version
@openzeppelin/confidential-contracts
npm
< 0.3.1
0.3.1

References

Frequently Asked Questions

What is CVE-2026-73645?
CVE-2026-73645 is a security vulnerability in ERC7984ERC20Wrapper involving once a wrapper is filled, subsequent wrap requests do not revert and result in loss of funds. under CWE-190: Integer Overflow or Wraparound.
Which ERC7984ERC20Wrapper versions are affected?
Affected versions include releases prior to 0.3.1 across affected packages: @openzeppelin/confidential-contracts.
What version fixes CVE-2026-73645?
Upgrading to 0.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @openzeppelin/confidential-contracts affected?
Yes, @openzeppelin/confidential-contracts is affected in releases prior to 0.3.1. Upgrade your dependency to 0.3.1 or later.
What CWE is associated with CVE-2026-73645?
CVE-2026-73645 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check npm dependencies for CVE-2026-73645?
Run the dependency tree command: 'npm ls @openzeppelin/confidential-contracts'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hqf9-8xv5-x8xw",
  "modified" : "2026-08-13T17:54:46Z",
  "published" : "2026-01-05T19:57:46Z",
  "aliases" : [ "CVE-2026-73645" ],
  "summary" : "ERC7984ERC20Wrapper: once a wrapper is filled, subsequent wrap requests do not revert and result in loss of funds.",
  "details" : "### Impact\nThe `ERC7984` contract tracks total supply using a confidential `euint64` value. If a call to the internal `_mint` function would result in the total supply overflowing, the call fails silently. The `wrap` and `onTransferReceived` functions in `ERC7984ERC20Wrapper` assume that `_mint` won't fail silently and do not check the return value. If the mint function fails silently, users do not receive the confidential wrapped token but still send the underlying token, resulting in a loss of funds.\n\nBy default (without overriding `rate()`, the wrapper fills up after wrapping ~18.4 trillion tokens. There are very few tokens of value with sufficient total supply to result in the filling of the wrapper. That said, we recommend upgrading to `0.3.1` to remove this issue. \n\n### Patches\nThis issue has been patched in the `0.3.1` release.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@openzeppelin/confidential-contracts"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.3.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/security/advisories/GHSA-hqf9-8xv5-x8xw"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenZeppelin/openzeppelin-confidential-contracts"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-05T19:57:46Z",
    "nvd_published_at" : null
  }
}