The issue arises from the theme not properly validating if the user can register option is enabled before creating a user through the `register handler()` function. This allows unauthenticated attackers to register as a user even when user registration is disabled.