CVE-2026-54036
Received Received - Intake
Two-Factor Authentication Bypass in LibreChat

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
librechat librechat 0.8.4-rc1
danny_avila librechat 0.8.4-rc1
danny_avila librechat to 0.8.4-rc1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-306 The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

This vulnerability allows an attacker with a valid session token to take over a user's two-factor authentication (2FA) without any verification, effectively compromising the integrity of the authentication process.

Such a compromise can lead to unauthorized access to user accounts, which may result in exposure or misuse of personal or sensitive data.

Consequently, this vulnerability could negatively impact compliance with standards and regulations like GDPR and HIPAA, which require strong access controls and protection of personal and sensitive information.

Executive Summary

CVE-2026-54036 is a vulnerability in LibreChat versions 0.8.3-rc1 and earlier that allows an attacker with a valid session token to fully take over a user's two-factor authentication (2FA) without any OTP verification.

The issue lies in the /api/auth/2fa/enable endpoint, which can be called even when 2FA is already enabled. This endpoint overwrites the existing TOTP secret, generates new backup codes, and disables 2FA without requiring any re-verification of the user's identity.

An attacker exploiting this vulnerability can replace the victim's 2FA secret with their own, invalidate all existing backup codes, disable 2FA, and then re-enable 2FA under their control, effectively locking the legitimate user out of their own two-factor authentication.

Impact Analysis

This vulnerability allows an attacker who has obtained a valid session token to completely take over your two-factor authentication (2FA) mechanism.

By exploiting this flaw, the attacker can disable your existing 2FA, replace your authentication secrets, and lock you out of your own account's 2FA protections.

This means that even if you have 2FA enabled, an attacker with a stolen session can bypass it and gain unauthorized access to your account, compromising your account's security and integrity.

Detection Guidance

This vulnerability can be detected by monitoring for unauthorized calls to the /api/auth/2fa/enable endpoint from authenticated sessions, especially if 2FA is already enabled on the account.

Network or application logs should be inspected for suspicious POST or GET requests to this endpoint that result in changes to 2FA settings without proper verification.

Suggested commands include using tools like curl or HTTP request log analysis to detect such calls. For example, checking web server logs with grep:

  • grep "/api/auth/2fa/enable" /var/log/nginx/access.log
  • grep "/api/auth/2fa/enable" /var/log/apache2/access.log

Additionally, monitoring session tokens usage and looking for unusual activity patterns or multiple 2FA resets can help detect exploitation.

Mitigation Strategies

The immediate mitigation step is to upgrade LibreChat to version 0.8.4-rc1 or later, where this vulnerability is fixed.

Until the upgrade is applied, restrict access to the /api/auth/2fa/enable endpoint to prevent unauthorized calls, for example by implementing stricter authentication checks or network-level access controls.

Additionally, monitor for suspicious activity related to 2FA changes and consider invalidating all active sessions to prevent attackers with stolen tokens from exploiting the vulnerability.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54036. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart