CVE-2026-73645: ERC7984ERC20Wrapper Once A Wrapper Is Filled, Vulnerability
MODERATECVE-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
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.
npm install @openzeppelin/confidential-contracts@0.3.1
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
CVE-2026-73645 Affected ERC7984ERC20Wrapper Versions
1 component(s)| 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?
Which ERC7984ERC20Wrapper versions are affected?
What version fixes CVE-2026-73645?
Is @openzeppelin/confidential-contracts affected?
What CWE is associated with CVE-2026-73645?
How can I check npm dependencies for CVE-2026-73645?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}