High

OpenZeppelin Confidential Contracts `VestingWalletConfidential`: a malicious ERC-7984 token is able to extract private data from the vesting wallet

  • Disclosed: 25.09.2026
  • Updated: 11.10.2026 10:22

Impact

Two locations consume an encrypted handle returned by an untrusted external party and use it without verifying that the party is ACL-authorized on it.

VestingWalletConfidential

Malicious users can call release with a malicious token. This token could return an alternative handle on confidentialBalanceOf, which represents the balance of the vesting wallet on an alternative ERC-7984 token (or any other handle that the vesting wallet has access to). The vesting wallet does not check that the token has ACL access and grants access to a new handle derived from the returned handle.

Effectively, this bug allows a malicious user to gain information about any private euint64 handle that the vesting wallet has access to via a malicious ERC-7984 token. There is no loss of funds.

ERC7984

On a transfer with callback, ERC7984 uses the ebool returned by the recipient's IERC7984Receiver.onConfidentialTransferReceived to drive the refund logic, without checking that the recipient has ACL access to it. A malicious recipient can return any ebool the token has access to and recover its plaintext from the refund result, which the token grants the caller access to. The leak is limited to ebool handles (the value is only used as an FHE.select condition), and there is no loss of funds.

Patches

Both issues were fixed in the same patch releases: v0.5.2, v0.4.2, v0.3.2

  • VestingWalletConfidential: 93e75ceed2b9648f53f9d133f431064353456805 (#423).
  • ERC7984 transfer callback: fe0863af2c9dce7614acce98720a913bf6a767a5 (#428), with follow-up ee47edf189ab681cebdad18bfb53dee541987be2 (#431) permitting an uninitialized returned handle.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @openzeppelin/confidential-contracts < 0.3.2, >= 0.4.0-rc.0, < 0.4.2, >= 0.5.0-rc.0, < 0.5.2 0.3.2, 0.4.2, 0.5.2

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-284
Platform
npm
Package
@openzeppelin/confidential-contracts
Disclosed
25.09.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-29h2-jr22-frmh - CC BY 4.0

Vulnerability history: @openzeppelin/confidential-contracts

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
01.2026 09.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 1

Disclosures per year

  1. 2026: 2
  1. OpenZeppelin Confidential Contracts `VestingWalletConfidential`: a malicious ERC-7984 token is able to extract private data from the vesting wallet this entry
    High ghsa-29h2-jr22-frmh < 0.3.2, >= 0.4.0-rc.0, < 0.4.2, >= 0.5.0-rc.0, < 0.5.2 0.3.2, 0.4.2, 0.5.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.