The @openeudi/openid4vp library versions prior to 0.8.1 contain a vulnerability in the X.509 certificate chain validation process. The ChainBuilder component incorrectly accepts a certificate as a trust anchor if its Subject Distinguished Name (DN) string matches that of a trusted anchor, without verifying the certificate's signature against the anchor's public key. This flaw allows an attacker to create a self-signed certificate with a forged Subject DN matching a trusted anchor, causing forged credentials signed by the attacker to be accepted as genuine. The vulnerability affects OpenID4VP presentations verification, potentially enabling impersonation of trusted issuers in identity verification deployments. The issue is fixed in version 0.8.1 by enforcing byte-identical matching of the terminating certificate to the trust anchor and improving anchor selection logic.