The vulnerability stems from improper authentication in the VKAppOAuth2 backend of social-auth-core. The auth_complete function, responsible for finalizing the authentication process, failed to enforce the presence and validity of the auth_key parameter. Prior to the patch, the code only attempted to verify the signature if an auth_key was present. If an attacker omitted the auth_key from the callback data, the system would proceed to process the unverified data, treating it as a legitimate VK identity. This allowed an attacker to spoof user identities by controlling fields like viewer_id and access_token. The patch explicitly adds a check to ensure auth_key is present and valid, raising an AuthFailed exception if it's missing or incorrect, thereby closing the authentication bypass vulnerability.