The issue concerns a symmetric/asymmetric key confusion attack. In PyJWT, the `invalid strings` check in `HMACAlgorithm.prepare key` does not account for all PEM encoded public keys, specifically the PKCS1 PEM encoded format. This allows an attacker to craft JWTs from scratch when using the PKCS1 PEM encoded public keys.