CVE-2026-54040
Undergoing Analysis
Undergoing Analysis - In Progress
2FA Backup Code Regeneration in LibreChat
Publication date: 2026-06-25
Last updated on: 2026-06-25
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| librechat | librechat | 0.8.4-rc1 |
| danny_avila | librechat | to 0.8.4-rc1 (exc) |
| danny_avila | librechat | 0.8.4-rc1 |
Helpful Resources
Exploitability
| 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. |