{"answers":{"affected":"6 open source packages ship an affected version, including @openzeppelin/confidential-contracts.","exploited":"There is no known exploitation of GHSA-29h2-jr22-frmh in the wild and no public exploit code.","fix":"Upgrade @openzeppelin/confidential-contracts to a fixed version for your release line: 0.3.2, 0.4.2 or 0.5.2.","what":"GHSA-29h2-jr22-frmh is a vulnerability in @openzeppelin/confidential-contracts, published on 25 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-29h2-jr22-frmh and fix it if it is affected.\n\nWhat it is: GHSA-29h2-jr22-frmh is a vulnerability in @openzeppelin/confidential-contracts, published on 25 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-29h2-jr22-frmh in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @openzeppelin/confidential-contracts (npm): affected all versions; fixed in 0.3.2\n- @openzeppelin/confidential-contracts (npm): affected all versions; fixed in 0.3.2\n- @openzeppelin/confidential-contracts (npm): affected from 0.4.0-rc.0; fixed in 0.4.2\n- @openzeppelin/confidential-contracts (npm): affected from 0.4.0-rc.0; fixed in 0.4.2\n- @openzeppelin/confidential-contracts (npm): affected from 0.5.0-rc.0; fixed in 0.5.2\n- @openzeppelin/confidential-contracts (npm): affected from 0.5.0-rc.0; fixed in 0.5.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-29h2-jr22-frmh/ (Markdown: https://insights.sbomify.com/GHSA-29h2-jr22-frmh/index.md)","id":"GHSA-29h2-jr22-frmh","markdown":"https://insights.sbomify.com/GHSA-29h2-jr22-frmh/index.md","name":"GHSA-29h2-jr22-frmh","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenZeppelin Confidential Contracts","requires_auth":"none","summary":"A malicious ERC-7984 token can extract private encrypted data from a vesting wallet by exploiting missing ACL checks on external handles.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nTwo locations consume an encrypted handle returned by an untrusted external party and use it without verifying that the party is ACL-authorized on it.\n\n#### `VestingWalletConfidential`\n\nMalicious 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.\n\nEffectively, 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.\n\n#### ERC7984\n\nOn a transfer with callback, `ERC7984` uses the `ebool` returned by the\nrecipient's `IERC7984Receiver.onConfidentialTransferReceived` to drive the refund\nlogic, without checking that the recipient has ACL access to it. A malicious recipient\ncan return any `ebool` the token has access to and recover its plaintext from the\nrefund result, which the token grants the caller access to. The leak is limited\nto `ebool` handles (the value is only used as an `FHE.select` condition), and\nthere is no loss of funds.\n\n### Patches\n\nBoth issues were fixed in the same patch releases: v0.5.2, v0.4.2, v0.3.2\n\n- `VestingWalletConfidential`: 93e75ceed2b9648f53f9d133f431064353456805 (#423).\n- `ERC7984` transfer callback: fe0863af2c9dce7614acce98720a913bf6a767a5 (#428), with follow-up ee47edf189ab681cebdad18bfb53dee541987be2 (#431) permitting an uninitialized returned handle.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"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.","id":"GHSA-29h2-jr22-frmh","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":6,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.3.2"],"introduced":["0"],"last_affected":[],"package":"@openzeppelin/confidential-contracts","purl":null,"source":"GHSA-29h2-jr22-frmh"},{"ecosystem":"npm","fixed":["0.3.2"],"introduced":["0"],"last_affected":[],"package":"@openzeppelin/confidential-contracts","purl":"pkg:npm/%40openzeppelin/confidential-contracts","source":"GHSA-29h2-jr22-frmh"},{"ecosystem":"npm","fixed":["0.4.2"],"introduced":["0.4.0-rc.0"],"last_affected":[],"package":"@openzeppelin/confidential-contracts","purl":null,"source":"GHSA-29h2-jr22-frmh"},{"ecosystem":"npm","fixed":["0.4.2"],"introduced":["0.4.0-rc.0"],"last_affected":[],"package":"@openzeppelin/confidential-contracts","purl":"pkg:npm/%40openzeppelin/confidential-contracts","source":"GHSA-29h2-jr22-frmh"},{"ecosystem":"npm","fixed":["0.5.2"],"introduced":["0.5.0-rc.0"],"last_affected":[],"package":"@openzeppelin/confidential-contracts","purl":null,"source":"GHSA-29h2-jr22-frmh"},{"ecosystem":"npm","fixed":["0.5.2"],"introduced":["0.5.0-rc.0"],"last_affected":[],"package":"@openzeppelin/confidential-contracts","purl":"pkg:npm/%40openzeppelin/confidential-contracts","source":"GHSA-29h2-jr22-frmh"}],"products":null,"published":"2026-09-25","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A malicious ERC-7984 token can extract private encrypted data from a vesting wallet by exploiting missing ACL checks on external handles.","url":"https://insights.sbomify.com/GHSA-29h2-jr22-frmh/"}