Crypt::OpenPGP versions before 1.22 for Perl accept any signature type as a document signature in verify.
The signature packet's type is read only to decide whether the data is canonicalised as text and is never checked against the document signature types. The digest covers the supplied data followed by the signature's own trailer, so a user ID certification, subkey binding, direct key or revocation signature verifies over a document consisting of the key and user ID material it covers.
An attacker holding any signature a key has issued, such as the self-certification on a published key, can pair it with that document, and verify reports a valid signature by the key.
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub