Skip to content
IAM Insights

Briefing · Article · source · published · Boston Identity

Formal proofs find no new flaws in OpenID4VP over the Digital Credentials API, for a March 2025 draft

Four University of Stuttgart researchers, working under a contract with the OpenID Foundation, proved three security properties of OpenID for Verifiable Presentations used through the browser's Digital Credentials API. The proofs cover the editor's draft of 27 March 2025, not the 1.0 Final text, and hold only inside a model with perfect cryptography and no clock. Issuance, session integrity, transaction data and verifier attestation were left out by agreement.

OpenID Foundation · Fabian Hauck, Pedram Hosseyni, Ralf Küsters, Tim Würtele · August 20, 2025 · read

share
4 findings5 sectionsStandardsDecentralized identity
34,857 words. With Fabian Hauck, author, University of Stuttgart; Pedram Hosseyni, author, University of Stuttgart; Ralf Küsters, author, University of Stuttgart; Tim Würtele, author, University of Stuttgart.
01

What's happening

Finding4
BI-FIND-2025-0329Lead finding

Stuttgart researchers proved three security properties of OpenID4VP in a formal model of the web for a March 2025 draft and report no new vulnerabilities.

Fabian Hauck, Pedram Hosseyni, Ralf Küsters and Tim Würtele of the University of Stuttgart proved three security properties of OpenID for Verifiable Presentations (OpenID4VP) run through the W3C Digital Credentials API, and report that "no new vulnerabilities were identified during the verification process." The text they analysed is the OpenID4VP editor's draft of 27 March 2025 (commit b0d6812), which they say matches draft 25 in the parts they modelled, paired with the Digital Credentials editor's draft of 20 February 2025. The report does not mention OpenID4VP 1.0 Final. The properties are verifier authentication, stated for signed requests; wallet authorization, meaning that when an honest verifier accepts a presentation and the wallet holding the credential's key is honest, that wallet made it; and claims unforgeability. Formally, the last one says that when an honest verifier logs a user in, and that user's wallets and the credential's issuer are honest, the verifier accepted a presentation one of those wallets made; if every party near that wallet is also honest, the attacker cannot learn the new session cookie. The model's verifier never looks that session up again, so nothing is proved about how it is used later. The properties hold for that draft, inside a formal model of the web and under its assumptions.

high confidencebest source: independent researchobserved Aug 2025EvidenceGoal, method and headline resultSection 3Section 4
flag a problem with BI-FIND-2025-0329
BI-FIND-2025-0330

The Stuttgart proofs treat cryptography as perfect, never check expiry and assume named parties are honest, so they say nothing of a corrupted wallet or issuer.

The Stuttgart proofs treat cryptography as perfect and have no notion of time, so expiry is never checked. The method usually assumes the protocol is implemented as specified, and the authors assume a working Web PKI, a browser that takes Digital Credentials API requests only from HTTPS origins, and a wallet that obtains the correct metadata for a verifier's client ID. Each property also takes named parties as honest. Claims unforgeability assumes an honest verifier, an honest issuer and honest wallets for the user, and its last part, that an attacker cannot learn the login session's cookie, also needs every party near the wallet to be honest. If a wallet or issuer is corrupted, the properties make no claim about it.

high confidencebest source: independent researchobserved Aug 2025EvidenceSection 2Section 4
flag a problem with BI-FIND-2025-0330
BI-FIND-2025-0331

By agreement with the OpenID Foundation, the proofs leave out credential issuance, session integrity, the transaction_data parameter and verifier attestation.

By agreement with the OpenID Foundation, the proofs leave out credential issuance (wallets start with valid credentials), session integrity, the transaction_data parameter, verifier attestation and every response type other than vp_token. The authors also simplify other parts and argue each simplification is safe: the model ignores credential query languages and lets the wallet pick any credential, sends requests unencrypted, never signs or encrypts responses, and passes request parameters by value. As the authors describe the method, it usually excludes cross-site scripting and flaws in cryptographic primitives and their implementations. Credentials are abstract signed terms, so no particular credential format is analysed, and the report does not discuss privacy.

high confidencebest source: independent researchobserved Aug 2025EvidenceSection 2Goal, method and headline result
flag a problem with BI-FIND-2025-0331
BI-FIND-2025-0332

The authors' earlier deliverable found a replay attack by a malicious verifier on draft 24, and the working group adopted both proposed changes.

The authors' earlier deliverable found a replay attack on draft 24 (the report's Figure 1). There the wallet used the client ID as the presentation's audience, and without a check of the origin against expected_origins a malicious verifier could replay an honest verifier's signed request and obtain a presentation, carrying a legitimate user's claims, that the honest verifier accepts. The working group adopted both proposed changes: a requirement that the wallet validate the origin (PR#544), and a Section 14.1 rule making the origin the API asserts the audience (PR#465). The authors say the draft they analysed does not require the wallet's expected_origins check, so their model leaves it out. As we read the proofs, they rely instead on the wallet setting the audience to the origin the API reports and on the verifier rejecting any audience that is not one of its own origins. Our briefing on OpenID4VP 1.0 Final found the origin audience rule in the final text.

medium confidencebest source: independent researchobserved Jul 2025 – Aug 2025EvidenceSpec changes already adoptedSection 2Section 4
Also reported in +1 briefing
flag a problem with BI-FIND-2025-0332
Figure steps
  1. The user's browser opens the malicious verifier's site.
  2. The malicious verifier starts a login at the honest verifier.
  3. The honest verifier answers with its signed request, which lists the expected_origins allowed to use it.
  4. The malicious verifier passes the same request to the browser's Digital Credentials API, and the browser hands it to the wallet with the origin malicious.com.
  5. Draft 24 did not require the wallet to check that origin against expected_origins, so the wallet returns a presentation whose audience is the honest verifier's client ID.
  6. The malicious verifier forwards the presentation to the honest verifier.
  7. The honest verifier accepts it for the login the malicious verifier started. The working group's fixes were a wallet origin check (PR#544) and the asserted origin as the audience (PR#465).
Fig. 1

In draft 24 the wallet bound its presentation to the client ID, so a malicious verifier could relay an honest verifier's signed request and hand back a presentation the honest verifier accepted for the login the attacker started.

Redrawn from the report's Figure 1Source dated August 20, 2025Passage: Spec changes already adopted

Swipe for the full figure →

02

Section by section

5

showing 5 of 5

[1]

Goal, method and headline result

Fabian Hauck, University of Stuttgart · Pedram Hosseyni, University of Stuttgart · Ralf Küsters, University of Stuttgart · Tim Würtele, University of Stuttgart

StandardsDecentralized identity

Under an agreement with the OpenID Foundation, the Stuttgart authors proved three security properties of OpenID4VP over the Digital Credentials (DC) API and found no new vulnerabilities. The method is the Web Infrastructure Model, a symbolic model of the web with a network attacker, and the report names no proof tool. It assumes a correct implementation and sets aside cross-site scripting and flaws in cryptographic code. Nothing was tested against a deployment.

technical artifactfrom published text

[2]

Modeling decisions, assumptions and what is not modeled

Fabian Hauck, University of Stuttgart · Pedram Hosseyni, University of Stuttgart · Ralf Küsters, University of Stuttgart · Tim Würtele, University of Stuttgart

StandardsDecentralized identity

Cryptography is perfect in the model and there is no clock, so nothing ever expires. Wallets start with valid credentials because issuance is not modelled, and session integrity is out of scope, both as agreed with the OpenID Foundation. Query languages, encrypted requests, dc_api.jwt responses, transaction_data and verifier attestation are not modelled, and only vp_token responses are. Metadata fetching and the Web PKI are assumed to work, and the wallet never checks expected_origins.

technical artifactfrom published text

[3]

Specification version analysed and the three properties

Fabian Hauck, University of Stuttgart · Pedram Hosseyni, University of Stuttgart · Ralf Küsters, University of Stuttgart · Tim Würtele, University of Stuttgart

StandardsDecentralized identity

The text analysed is the OpenID4VP editor's draft of 27 March 2025 (commit b0d6812), which the authors say matches draft 25 in the parts they modelled, with the W3C Digital Credentials editor's draft of 20 February 2025. The properties are verifier authentication for signed requests, wallet authorization and claims unforgeability. The informal summary makes honest parties near the wallet a condition of the whole last property; the formal definition applies it to one part.

technical artifactfrom published text

[4]

Formal model, property definitions and proofs (Appendices A-C)

Fabian Hauck, University of Stuttgart · Pedram Hosseyni, University of Stuttgart · Ralf Küsters, University of Stuttgart · Tim Würtele, University of Stuttgart

StandardsDecentralized identity

Appendix A models verifier, wallet, browser and issuer as algorithms. Appendix B defines the properties (Definitions 12 to 14), and Appendix C proves them (Lemmas 5, 6 and 10) from key-secrecy and DC API lemmas. Each proof traces a value back to the line that creates it; no proof tool is named. Claims unforgeability yields three results: the verifier accepted a presentation, an honest wallet made it, and, if every party near the wallet is honest, the attacker cannot learn the session token.

technical artifactfrom published text

[5]

Spec changes already adopted: expected_origins and audience (Appendix D)

Fabian Hauck, University of Stuttgart · Pedram Hosseyni, University of Stuttgart · Ralf Küsters, University of Stuttgart · Tim Würtele, University of Stuttgart

StandardsDecentralized identity

The working group adopted both changes the authors proposed in their earlier deliverable. In draft 24 the wallet used the client ID as the audience. With no check of the DC API origin against expected_origins, a malicious verifier could replay an honest verifier's signed request and get a presentation the honest verifier accepts (Figure 1); PR#544 added the origin check. PR#465 aligned Section 14.1 so that over the DC API the audience is the origin the API asserts.

technical artifactfrom published text + figures

Terms used

OpenID Foundation
The standards body behind OpenID Connect, CIBA, and AuthZEN — where much of the web's login plumbing gets written.
OpenID for Verifiable Presentations
The OpenID Foundation protocol for presenting a digital credential from a wallet to a verifier, with a transaction_data field that lets the holder sign extra information, such as a payment mandate, along with the presentation.
Digital Credentials API
A W3C browser interface that lets a website ask for a credential, such as a digital driver's license, from the wallet on the user's device.
Attestation
A signed statement that something is what it claims to be: which model an agent runs, what code it was built from, or which human owns it.
Web PKI
The public certificate system that browsers use to trust websites, run by certificate authorities that browsers and operating systems approve.
Cross-site scripting (XSS)
An attack where a site is tricked into running an attacker's script in a visitor's browser, which can then read tokens held in the page and act as the visitor.
Replay attack
Capturing a valid message or token and sending it again to repeat an action or impersonate its sender.
Application programming interface
Application programming interface: a defined way for software components to request operations or exchange data.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity