Gophish versions through 0.12.1 have a vulnerability in the API authentication middleware where account lockout and password change requirements are not enforced. This allows attackers with valid API keys to bypass these security controls and maintain full API access even if their account is locked or a password change is mandated.