arXiv:2611.04461cs.CRNov 2026

Manuscript Offprint

arXiv:2611.04461

A Security Analysis of Verifiable Credential Verification Pipelines: Attack Surface Arising from JSON-LD/RDFC Canonicalization Compared with SD-JWT VC and mdoc

Naohiro Fujie, Shigeya Suzuki

Naohiro Fujie

MIRAI Design Laboratory ITOCHU Techno-Solutions Corporation OpenID Foundation Japan Tokyo, Japan naohiro.fujie@ctc-g.co.jp

Shigeya Suzuki

Global Research Institute Keio University Tokyo, Japan shigeya@wide.ad.jp

Abstract—We evaluate, at implementation level and under an explicit threat model, the verification pipelines of three Verifiable Credential (VC) formats: SD-JWT VC; the W3C Verifiable Credentials Data Model 2.0 with the Data Integrity cryptosuite eddsa-rdfc-2022 (W3C VCDM); and mdoc (ISO/IEC 18013-5). For W3C VCDM we identify and exercise three structural attack surfaces from remote context resolution and RDFC-1.0 canonicalization: denial of service (DoS) via poison graphs, context injection through @context, and server-side request forgery (SSRF) reachable via malicious URLs, all at default settings. A poison graph, whose blank-node references are symmetric enough to force RDFC-1.0 into deep recursion, raises it to 278×278\times the baseline from five blank nodes in 527 bytes, and to 13.5 s from eight. Every experiment ran in four environments sharing runtime and library versions; the multiple moves with the machine (251−424×251-424\times for one input), not with its speed. Cost tracks that symmetry rather than the node count: an acyclic input with 1,500 blank nodes stays at 462−714×462-714\times. A call limit separates the two: every attack family aborts at 16 or below, every legitimate credential completes at 1, but a shallow, wide recursion, such as the acyclic control, passes whatever the bound. DoS does not presuppose adversarial input: with production education schemas, canonicalization costs 23−34×23-34\times a simple credential in one environment, 16−49×16-49\times across four. Effective mitigations are a static document loader, which removes the retrieval latency and both remote-context surfaces; a context allowlist; and a call limit with a size bound. SD-JWT VC and mdoc need neither canonicalization nor external references, and our verifiers resisted every vector evaluated. These are not format-specific defects but properties of the pipeline and its configuration.

Index Terms—Verifiable Credentials, security evaluation, RDFC-1.0, RDF canonicalization, denial of service, context injection, SSRF, alg:none

I. INTRODUCTION

In the field of digital identity, Verifiable Credentials (VCs) have attracted attention as a mechanism that lets a verifier mechanically verify issuer-signed claims without querying a third party. The principal options available to implementers

today are SD-JWT VC [1], configurations based on the W3C Verifiable Credentials Data Model 2.0 (VCDM 2.0) [2], and mdoc [3]. These are not specifications at the same level of abstraction. SD-JWT VC and mdoc are credential formats that jointly specify claim structure, encoding and securing. VCDM 2.0, by contrast, specifies only an abstract data model for credentials; securing is supplied by separately combining it with a securing mechanism (Data Integrity [4] or VC-JOSE-COSE [5]). This paper evaluates the configuration that combines VCDM 2.0 with the Data Integrity cryptosuite eddsa-rdfc-2022; we refer to it as “VCDM 2.0 + Data Integrity” and abbreviate it as W3C VCDM. Where we mean the data model specification alone, without a securing mechanism, we write “VCDM 2.0”, to distinguish it from the configuration evaluated here. The three rest on different design philosophies, so selecting among them requires multifaceted evaluation.

SD-JWT VC is specified as an IETF Internet-Draft under active development and adopts JWT compact serialization. It has strong affinity with the existing OAuth 2.0/OpenID Connect ecosystem, and selective disclosure is realized through the SD-JWT specification [6]. mdoc is the format for mobile identification documents specified in ISO/IEC 18013-5 [3] and adopts binary encoding based on CBOR (Concise Binary Object Representation) and COSE (CBOR Object Signing and Encryption). VCDM 2.0 + Data Integrity, by contrast, expresses the credential data model in JSON-LD, and the eddsa-rdfc-2022 cryptosuite requires RDF dataset canonicalization (RDFC-1.0, the W3C Recommendation of the algorithm formerly developed as URDNA2015) [7] and the resolution of external contexts for signing and verification.

Studies that compare the security characteristics of these three verification pipelines at the implementation level, under an explicit threat model, remain limited. W3C VCDM in particular requires RDF canonicalization and the resolution of external contexts for signing and verification, so it contains processing stages—absent from the other two formats—that can become an attack surface. The W3C RDFC-1.0 specification [8] documents its worst-case complexity and the associated denial-of-service concern, but the extent to which this materializes in implementations, and how effective each mitigation is, have not been shown quantitatively. Moreover, EU Regulation 2024/1183 (eIDAS 2.0) [9] establishes the European Digital Identity Wallet (EUDIW), and the implementing acts adopted under it designate SD-JWT VC and mdoc as the credential formats wallets must support, making the comparison of security characteristics across formats increasingly relevant in practice. This paper evaluates, at the implementation level and under an explicit threat model, the resilience of each format against attack vectors including denial of service, context injection, SSRF, algorithm confusion, and data tampering, and quantifies the effectiveness of the available mitigations.

References (29)