Skip to content
MediumVulnerability

CVE-2026-54036: LibreChat 2FA enable endpoint lets authenticated user overwrite existing 2FA

Identifier
CVE-2026-54036
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

LibreChat versions prior to 0.8.4-rc1 expose a GET /api/auth/2fa/enable endpoint that an authenticated user, or an attacker holding a stolen session, can call even when 2FA is already enabled. The call overwrites the existing TOTP secret, generates new backup codes and sets twoFactorEnabled to false, without any TOTP or backup code verification. This lets an attacker with a valid session token take over the victim's 2FA and lock the legitimate user out.

Mitigation

Fixed in 0.8.4-rc1.