---
id: "CVE-2026-22696"
kind: "vulnerability"
aliases: ["CVE-2026-22696", "GHSA-796p-j2gh-9m2q"]
title: "dcap-qvl has Missing Verification for QE Identity"
severity: "critical"
cvss: 9.3
epss: 0.00205
exploited: false
status: "open"
category: "package"
products: [{"name": "dcap-qvl", "fixed": ["0.3.9"], "affected": "< 0.3.9", "ecosystem": "cargo"}, {"name": "@phala/dcap-qvl", "fixed": ["0.3.9"], "affected": "<= 0.3.0", "ecosystem": "npm"}, {"name": "@phala/dcap-qvl-web", "fixed": [], "affected": "<= 0.3.3", "ecosystem": "npm"}, {"name": "@phala/dcap-qvl-node", "fixed": [], "affected": "<= 0.3.3", "ecosystem": "npm"}, {"name": "dcap-qvl", "fixed": ["0.3.9"], "affected": "< 0.3.9", "ecosystem": "pypi"}]
ecosystems: ["cargo", "npm", "pypi"]
tags: ["confidential-computing", "cwe-295", "cwe-347", "node", "package", "python", "remote-attestation", "rust", "sgx", "tdx", "tee"]
not_affected_if: ["no-dcap-verification", "patched-version"]
published_at: "2026-01-26T18:55:13+00:00"
first_seen_at: "2026-10-27T16:25:42+00:00"
updated_at: "2026-10-27T16:33:07+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-796p-j2gh-9m2q", "first_seen_at": "2026-10-27T16:25:42+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-22696", "first_seen_at": "2026-10-27T16:33:07+00:00"}]
---

# dcap-qvl has Missing Verification for QE Identity

The dcap-qvl library, used to verify SGX and TDX remote attestation quotes, does not verify the signature on QE Identity collateral fetched from the PCCS and does not enforce the QE Report policy checks. An attacker can supply forged QE Identity data to accept a malicious or non-Intel Quoting Enclave and get forged quotes that the verifier treats as valid.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- cargo:dcap-qvl affected < 0.3.9 fixed 0.3.9
- npm:@phala/dcap-qvl affected <= 0.3.0 fixed 0.3.9
- npm:@phala/dcap-qvl-web affected <= 0.3.3 fixed ?
- npm:@phala/dcap-qvl-node affected <= 0.3.3 fixed ?
- pypi:dcap-qvl affected < 0.3.9 fixed 0.3.9

## How to check

- Run `cargo tree -p dcap-qvl` or check Cargo.lock for `dcap-qvl` below `0.3.9`
- Run `npm ls @phala/dcap-qvl @phala/dcap-qvl-node @phala/dcap-qvl-web` and check for versions `<= 0.3.0` or `<= 0.3.3` of the Node and web packages
- Run `pip show dcap-qvl` and check for a version below `0.3.9`

## Fix

- Upgrade the Rust crate `dcap-qvl` to `0.3.9`
- Upgrade `@phala/dcap-qvl` to `0.3.9`
- Replace `@phala/dcap-qvl-node` and `@phala/dcap-qvl-web` with the pure JavaScript package `@phala/dcap-qvl` at `0.3.9`; no fixed version is listed for the Node and web packages
- Upgrade the Python package `dcap-qvl` to `0.3.9`

## Timeline

- 2026-10-27T16:25:42+00:00 ghsa https://github.com/advisories/GHSA-796p-j2gh-9m2q
- 2026-10-27T16:33:07+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-22696

## From the sources

## Impact
This vulnerability involves a critical gap in the cryptographic verification process within the dcap-qvl.

The library fetches QE Identity collateral (including qe_identity, qe_identity_signature, and qe_identity_issuer_chain) from the PCCS. However, it skips to verify the QE Identity signature against its certificate chain and does not enforce policy constraints on the QE Report.

## Consequences
An attacker can forge the QE Identity data to whitelist a malicious or non-Intel Quoting Enclave. This allows the attacker to forge the QE and sign untrusted quotes that the verifier will accept as valid. Effectively, this bypasses the entire remote attestation security model, as the verifier can no longer trust the entity responsible for signing the quotes.

## Who is impacted
All deployments utilizing the dcap-qvl library for SGX or TDX quote verification are affected.

## Patches
The vulnerability has been patched in dcap-qvl version 0.3.9. The fix implements the missing cryptographic verification for the QE Identity signature and enforces the required checks for MRSIGNER, ISVPRODID, and ISVSVN against the QE Report.

Users of the `@phala/dcap-qvl-node` and `@phala/dcap-qvl-web` packages should switch to the pure JavaScript implementation, `@phala/dcap-qvl`.

## Workarounds
There are no known workarounds for this vulnerability. Users must upgrade to the patched version to ensure that QE Identity collateral is properly verified.

## Credit
This bug was reported by Rahul Saxena <saxenism@bluethroatlabs.com>.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
