CVE-2026-54036 LibreChat: 2FA Re-enrollment Allows Full Account 2FA Takeover Without OTP Verification

Medium 5.3 Published Updated

An attacker with a valid session can disable and reset a victim's 2FA without verification, leading to full account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-54036?

CVE-2026-54036 is a medium-severity authentication bypass vulnerability in Librechat Librechat, published on 25 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the GET /api/auth/2fa/enable endpoint can be called by an authenticated user (or attacker with a stolen session) even when 2FA is already fully enabled on the account. This endpoint overwrites the existing TOTP secret, generates new backup codes, and sets twoFactorEnabled to false — all without requiring any TOTP or backup code verification. An attacker with a valid session token can completely take over a victim's 2FA, locking the legitimate user out of their own two-factor authentication. This vulnerability is fixed in 0.8.4-rc1.

Weakness: CWE-306

Which versions are affected by CVE-2026-54036?

It affects 1 product.

Products include Librechat Librechat.

How do I fix CVE-2026-54036?

No fix has been published for CVE-2026-54036 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-54036 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54036 exists.

All Librechat Librechat vulnerabilities

Sources

Also known as GHSA-45fp-6q26-wfgq.

Is CVE-2026-54036 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free