CVE-2026-54040 Details
Description
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/auth/2fa/backup/regenerate endpoint regenerates all 2FA backup codes without requiring any TOTP token or existing backup code verification. An attacker with a stolen session token can silently replace a victim's backup codes and use them to bypass 2FA login or disable 2FA entirely. This vulnerability is fixed in 0.8.4-rc1.
A vulnerability in LibreChat versions prior to 0.8.4-rc1 allows the regeneration of two-factor authentication (2FA) backup codes without requiring verification through a TOTP token or existing backup code. This issue is present in the POST /api/auth/2fa/backup/regenerate endpoint. An attacker with a stolen session token can exploit this vulnerability to silently replace a victim's backup codes, bypassing 2FA login requirements or disabling 2FA entirely.
Users should update to LibreChat version 0.8.4-rc1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gv | CISA-ADP | ExploitVendor Advisory |
| https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gv | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-306 | Missing Authentication for Critical Function | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| librechat librechat | <= 0.8.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 29, 2026 | Initial Analysis | [email protected] |
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 25, 2026 | New CVE Received | [email protected] |