Vulnerabilities in pkg:npm/@phala/dcap-qvl

PACKAGE
Advisory Identifier: GHSA-796p-j2gh-9m2q
Advisory Summary

CVE-2026-22696 is a CRITICAL dcap-qvl has missing verification for vulnerability (CWE-295: Improper Certificate Validation) affecting Dcap qvl libraries in the crates.io ecosystem. The issue involves dcap-qvl has missing verification for qe identity. Remediation is available by upgrading affected packages to version 0.3.9.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@phala/dcap-qvl

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@phala/dcap-qvl. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-796p-j2gh-9m2q CVE-2026-22696 CRITICAL dcap-qvl has Missing Verification for QE Identity

CVE-2026-22696 at a Glance

CVE Identifier CVE-2026-22696
GHSA Identifier GHSA-796p-j2gh-9m2q
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Dcap qvl
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2026-22696

To remediate this vulnerability, upgrade all affected Dcap qvl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

dcap-qvl fixed: 0.3.9
Upgrade dcap-qvl to 0.3.9
@phala/dcap-qvl fixed: 0.3.9
npm install @phala/dcap-qvl@0.3.9
@phala/dcap-qvl-web fixed: Latest secure release
npm install @phala/dcap-qvl-web@Latest secure release
@phala/dcap-qvl-node fixed: Latest secure release
npm install @phala/dcap-qvl-node@Latest secure release
dcap-qvl fixed: 0.3.9
pip install dcap-qvl>=0.3.9
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for dcap-qvl

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-22696, inspect your project dependencies for Dcap qvl:

inspect dependencies for dcap-qvl

Analyze the terminal output to locate any version of Dcap qvl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.9), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Dcap qvl, 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

## 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>.

CVE-2026-22696 Affected Dcap qvl Versions

5 component(s)
Fixed Versions:
0.3.9
Product / Package Ecosystem Affected Versions Fixed Version
dcap-qvl
crates.io
< 0.3.9
0.3.9
@phala/dcap-qvl
npm
< 0.3.9
0.3.9
@phala/dcap-qvl-web
npm
≤ 0.3.3
@phala/dcap-qvl-node
npm
≤ 0.3.3
dcap-qvl
PyPI
< 0.3.9
0.3.9

References

Frequently Asked Questions

What is CVE-2026-22696?
CVE-2026-22696 is a security vulnerability in Dcap qvl involving dcap-qvl has Missing Verification for QE Identity under CWE-295: Improper Certificate Validation.
Which Dcap qvl versions are affected?
Affected versions include releases prior to 0.3.9 across affected packages: dcap-qvl, @phala/dcap-qvl, @phala/dcap-qvl-web, @phala/dcap-qvl-node.
What version fixes CVE-2026-22696?
Upgrading to 0.3.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dcap-qvl affected?
Yes, dcap-qvl is affected in releases prior to 0.3.9. Upgrade your dependency to 0.3.9 or later.
Is @phala/dcap-qvl affected?
Yes, @phala/dcap-qvl is affected in releases prior to 0.3.9. Upgrade your dependency to 0.3.9 or later.
What CWE is associated with CVE-2026-22696?
CVE-2026-22696 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check crates.io dependencies for CVE-2026-22696?
Run the dependency tree command: 'inspect dependencies for dcap-qvl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-796p-j2gh-9m2q",
  "modified" : "2026-01-29T03:22:29Z",
  "published" : "2026-01-26T18:55:13Z",
  "aliases" : [ "CVE-2026-22696" ],
  "summary" : "dcap-qvl has Missing Verification for QE Identity",
  "details" : "## Impact\nThis vulnerability involves a critical gap in the cryptographic verification process within the dcap-qvl.\n\nThe 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.\n\n## Consequences\nAn 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.\n\n## Who is impacted\nAll deployments utilizing the dcap-qvl library for SGX or TDX quote verification are affected.\n\n## Patches\nThe 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.\n\nUsers of the `@phala/dcap-qvl-node` and `@phala/dcap-qvl-web` packages should switch to the pure JavaScript implementation, `@phala/dcap-qvl`.\n\n## Workarounds\nThere are no known workarounds for this vulnerability. Users must upgrade to the patched version to ensure that QE Identity collateral is properly verified.\n\n## Credit\nThis bug was reported by Rahul Saxena <saxenism@bluethroatlabs.com>.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "dcap-qvl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@phala/dcap-qvl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.9"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.3.0"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@phala/dcap-qvl-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@phala/dcap-qvl-node"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dcap-qvl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Phala-Network/dcap-qvl/security/advisories/GHSA-796p-j2gh-9m2q"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22696"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Phala-Network/dcap-qvl"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295", "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-26T18:55:13Z",
    "nvd_published_at" : "2026-01-26T22:15:55Z"
  }
}