The vulnerability lies in the improper handling of sensitive user data within the AccountService of the Flowise application. Specifically, the login and saveInviteAccount functions retrieve complete user objects from the database, which include sensitive information like the bcrypt-hashed password. Instead of sanitizing these objects to remove the password hash before sending them back to the client, the functions return the raw, unsanitized data. The corresponding controller functions, AccountController.login and AccountController.invite, then take this sensitive data and directly include it in the JSON response to the user. This allows an authenticated attacker to retrieve the password hashes of users, which they can then attempt to crack offline. The vulnerability is a result of an incomplete security fix that failed to apply sanitization to all relevant code paths.