Pion DTLS versions 2.0.0 through 2.2.12 and 3.0.0 up to but not including 3.1.13 contain a vulnerability where the DTLS handshake signature scheme is not consistently validated against the certificate's public key type and required hash algorithm. This flaw allows an attacker who can redirect a DTLS handshake and has access to the peer's public certificate to impersonate that peer without possessing the private key. The vulnerability affects handshake message verification, enabling signature forgery acceptance. This issue is critical and has been fixed in version 3.1.13.