← Lab /Software

W3C VC verification can be DoSed up to 278× via JSON-LD canonicalization

Default verification pipelines for W3C Verifiable Credentials are vulnerable to DoS, SSRF, and context-injection attacks caused by JSON-LD/RDFC canonicalization

Software arXiv 3 Nov 2026 Measurement Prototype evidence

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

Why it matters

Implementations of VCDM must embed contexts statically or enforce a low recursion-depth limit (and possibly document-size bounds) to avoid exploitable denial-of-service and SSRF attacks.

Summary

W3C VCDM (JSON-LD + RDFC-1.0) is vulnerable to context injection, SSRF, and poison-graph denial-of-service attacks that can make verification 278× slower than a simple credential, while SD-JWT VC and mdoc reject these malformed inputs. The evidence is based on measured attacks across four hardware environments and shows that mitigations such as a recursion-depth call limit can stop the attacks but legitimate complex credentials already incur 34× baseline cost.

What they found 3

  1. Poison-graph DoS attack on VCDM succeeds with 278× baseline processing time.

    “Attack succeeds: 278× baseline from 5 blank nodes in 527 B (251-424× across the four environments)”

  2. Context injection changes term IRI and causes verification failure.

    “context injection changed the IRI that a term denotes-http://schema.org/name became http://attacker.example.com/vocab#displayName”

  3. SSRF test shows the loader attempts to fetch the cloud metadata endpoint.

    “Attack surface confirmed: loader asked for 169.254.169.254”

Caveats 4

  • A recursion-depth call limit (maxDeepIterations ≤16) aborts all cyclic poison-graph attacks, showing the vulnerability can be mitigated.
  • Even well-formed production credentials (e.g., Open Badges v3.0) cost up to 34× the baseline, indicating high cost is not limited to malicious inputs.
  • The limit is selective: every legitimate input completes at every k, including k = 1.
  • The limit is necessary rather than sufficient, for the reason established in Section V-B.

What’s new here 4

  • First quantitative, implementation-level security comparison of VCDM, SD-JWT VC, and mdoc under a defined threat model.
  • Demonstration that adversarial blank-node graphs cause extreme RDFC-1.0 canonicalization costs (up to >300× baseline).
  • Evaluation of a recursion-depth call-limit mitigation and its selectivity across environments.
  • Measurement of context-loader latency and the impact of remote @context resolution on security.