CVE-2026-54040
published medium CVSS 3.1 · 5.9LibreChat: 2FA Backup Code Regeneration Without OTP Verification Allows 2FA Bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| danny-avila | — | LibreChat< 0.8.4-rc1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| danny-avila | LibreChat | < 0.8.4-rc1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-306 CWE-306: Missing Authentication for Critical Function
References
1Provider assertions
2GitHub_M · cna
LibreChat: 2FA Backup Code Regeneration Without OTP Verification Allows 2FA Bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- eff1e573a50ff30a0dce05ac31286852b7589bb68478876c6f134e3a4ca5dc1d
- Ingested
- 23 Sep 2026, 09:20:18 UTC
- Source record
- Official CVE record