Missing Authentication for Critical Function in LibreChat - #VU133263
Published: June 3, 2026
LibreChat
Detailed vulnerability description
The vulnerability allows a remote user to take over two-factor authentication for an account.
The vulnerability exists due to missing authentication for a critical function in the GET /api/auth/2fa/enable endpoint when handling requests for accounts with 2FA already enabled. A remote user can call the endpoint with a valid session token to take over two-factor authentication for an account.
The issue overwrites the existing TOTP secret, generates new backup codes, and sets twoFactorEnabled to false without requiring TOTP or backup code verification.