Digital Credentials Query Language (DCQL) is a JSON-based query language used in OpenID for Verifiable Presentations, letting a verifier describe which credentials and claims it needs from a wallet. Security relevance lies in data minimisation: queries should request only necessary claims, and wallets should show users exactly what is being asked before releasing anything.
What DCQL is for in a verifiable presentation flow
DCQL sits inside an OpenID for Verifiable Presentations exchange as the verifier’s request language. It lets the verifier describe which credentials, claim types, and presentation constraints it needs, so the wallet can evaluate whether it has something relevant to release and can show the user what is being requested before anything is disclosed.
That makes DCQL less about “asking for data” in the abstract and more about expressing a precise disclosure request. In practice, the language is part of the trust boundary between verifier and wallet: the better the request is scoped, the easier it is to limit overcollection, reduce user confusion, and avoid accidental disclosure of unrelated attributes.
How DCQL shapes selective disclosure and user consent
DCQL matters because it influences both machine readability and human review. A verifier can ask for only the credential types or claims it actually needs, which supports data minimisation and selective disclosure rather than broad credential dumping. Wallet UX then becomes a security control, because users should be able to see the request in plain terms before approving it.
That user-visible step is important in wallet-based identity systems because disclosure decisions often happen in a single interaction. If the request is vague, too broad, or poorly rendered, the user may approve more than intended. If the request is narrow and intelligible, the wallet can help preserve privacy without breaking interoperability.
For the broader wallet and verifiable credentials ecosystem around OpenID4VP, see Digital Identity, eID and Identity Wallets Guide and OpenID for Verifiable Presentations (OpenID4VP) Guide.
Why request precision matters for wallet security
DCQL is security-relevant because an overly permissive request can become a privacy problem even when the underlying credential system is sound. The main failure mode is scope creep: a verifier requests more attributes than needed, or asks in a way that makes the wallet surface too much of the user’s credential set. That can expose unnecessary personal data, weaken informed consent, and increase the blast radius if the verifier is untrusted or compromised.
The other practical risk is misinterpretation. If a wallet or verifier handles the query loosely, the request may be displayed unclearly, matched too broadly, or accepted without a strong user understanding of what will be shared. In wallet ecosystems, subtle presentation errors can matter as much as cryptographic correctness.
Where DCQL fits among related credential request mechanisms
DCQL is one part of a wider family of wallet request and presentation mechanisms. It is useful when a verifier needs a structured way to describe the credential and claim shape it wants, but it still depends on the surrounding protocol, wallet policy, and verifier implementation to preserve privacy and trust. The query language does not replace issuer trust, wallet policy, or presentation validation, it just makes the request more explicit.
That is why implementation details around verifier identification, response handling, and request rendering are inseparable from the language itself. A well-formed query can still be unsafe if the wallet cannot show it clearly, if the verifier is not properly authenticated, or if the presentation flow encourages over-disclosure. The practical test is not only whether the request is valid JSON, but whether it is constrained enough to support the privacy intent of the exchange.
Risk and Threat Considerations
Broadly scoped credential requests create avoidable privacy exposure, especially when the verifier only needs a subset of claims. In wallet flows, the threat is less about breaking the cryptography and more about inducing unnecessary disclosure through ambiguous, excessive, or misleading requests.
Failure mechanism: The verifier asks for more than is needed, the wallet renders the request unclearly, or the user cannot easily tell which claims are actually being released, leading to over-disclosure or consent mistakes.
Impact: Unnecessary personal data can be exposed, user trust can be reduced, and a compromised or malicious verifier may harvest more information than the transaction requires.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-63 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API6 — Unrestricted Access to Sensitive Business Flows | DCQL governs how credential-release flows are scoped in wallet presentation exchanges. |
| Recommendation — Constrain credential-request flows so verifiers only ask for the claims needed for the transaction. | ||
| NIST SP 800-63 | Digital Identity Guidelines | DCQL is used in verifiable presentation exchanges that depend on clear identity proofing and disclosure rules. |
| Recommendation — Align wallet presentation requests with phishing-resistant identity and disclosure expectations. | ||
| NIST CSF 2.0 | PR.AA-05 — Identity Management, Authentication, and Access Control | DCQL affects how access decisions and disclosure requests are expressed in identity transactions. |
| Recommendation — Apply least-privilege access logic to wallet request design and disclosure approval. | ||
Practitioner Guidance
Why practitioners should care: DCQL should be treated as a privacy control surface, not just a protocol detail. Verifier teams should design requests so the smallest necessary set of credentials and claims is expressed, and wallet teams should make the request understandable before any approval step.
Practitioner takeaway: If a DCQL request is hard to explain to a user, it is probably too broad for a trustworthy wallet flow.
Related resources from NHI Mgmt Group
- What do teams get wrong about reusable digital credentials?
- How should security teams use natural-language query builders without losing control?
- Why do digital credentials not replace authorization controls in enterprise systems?
- Why do digital credentials change privacy and IAM design at the same time?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org