Skip to content

Update dependency @openzeppelin/confidential-contracts to v0.3.2 [SECURITY] - #877

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-openzeppelin-confidential-contracts-vulnerability
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-openzeppelin-confidential-contracts-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@openzeppelin/confidential-contracts (source) 0.3.1 → 0.3.2 age adoption passing confidence

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

GHSA-29h2-jr22-frmh

More information

Details

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.

Severity

  • CVSS Score: 7.1 / 10 (High)
  • Vector String: 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

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

OpenZeppelin/openzeppelin-confidential-contracts (@​openzeppelin/confidential-contracts)

v0.3.2

Compare Source

  • VestingWalletConfidential: Ensure that tokens are allowed to access handles they return (or the handle is uninitialized). (#​423)
  • ERC7984: Check that IERC7984Receiver has ACL access to the ebool they return (or the handle is uninitialized). (#​428)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested review from a team as code owners September 25, 2026 21:13
@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 51f26554-f649-4182-b3ba-3e91ae0cb468

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​openzeppelin/​confidential-contracts@​0.3.1 ⏵ 0.3.280100 +1680 +196 +3100
Updatednpm/​@​openzeppelin/​contracts@​5.6.0 ⏵ 5.6.110010010091 -4100

View full report

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants