OpenID4VP flaw can let forged credentials pass as genuine

  • ChainBuilder
  • X.509
  • impersonation
  • cryptographic
  • openid4vp

Flaw allows improper X.509 certificate chain validation

Attackers could potentially impersonate trusted issuers

Update to version 0.8.1 to resolve the security issue

The @openeudi/openid4vp package contains a certificate-validation vulnerability in ChainBuilder, which can cause relying parties to accept forged credentials as genuine. The advisory does not specify when the issue was discovered or reported.

The flaw affects package versions up to and including 0.8.0. ChainBuilder treated a certificate’s Subject Distinguished Name (DN)—a name field in a certificate—as sufficient to end the certificate chain when it matched a trusted anchor’s DN, without verifying the certificate’s signature with the anchor’s public key.

The advisory says forged credentials could be accepted as issued by a trusted authority. It recommends upgrading to version 0.8.1, which fixes the issue; it reports no workaround.