CVE-2026-54040: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers
CVE-2026-54040 is a medium-severity flaw (CVSS 5.9) affecting librechat. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.9 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 83%) |
| CISA exploited list | No |
| Weakness | CWE-306 |
| Published | 2026-06-25 |
| Last modified | 2026-10-25 |
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-54040?
librechat: upgrade to newer than 0.8.3. Exact commands for each OS are on this page.
Is CVE-2026-54040 being exploited?
CVE-2026-54040 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-54040 affect?
CVE-2026-54040 affects librechat. Severity is medium (CVSS 5.9). 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 veri
How urgent is CVE-2026-54040?
Priority 30/100. Public exploit reference
Software pages
OpenAI ChatGPT vulnerabilities
Related CVEs
- CVE-2026-54033 HIGH 7.7 UPGRADE LibreChat is an enhanced ChatGPT clone that supports multiple AI providers
- CVE-2026-54037 MEDIUM 6.5 UPGRADE LibreChat is an enhanced ChatGPT clone that supports multiple AI providers
- CVE-2026-54024 MEDIUM 6.5 UPGRADE LibreChat is an enhanced ChatGPT clone that supports multiple AI providers
- CVE-2026-54027 MEDIUM 6.5 UPGRADE LibreChat is an enhanced ChatGPT clone that supports multiple AI providers
- CVE-2026-54030 HIGH 8.0 UPGRADE LibreChat is an enhanced ChatGPT clone that supports multiple AI providers