CVE-2026-54040
Last modified
CVE-2026-54040 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Librechat | Librechat | <= 0.8.3 |
References
- https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gvExploit, Vendor Advisory
- https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gvExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-54040?
How severe is CVE-2026-54040?
How do I fix CVE-2026-54040?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-5403SBC codec crash in Wireshark 4.6.0 to 4.6.4 and 4.4.0 to 4.4…7.8
- CVE-2026-54030LibreChat is an enhanced ChatGPT clone that supports multipl…9.3
- CVE-2026-54033LibreChat is an enhanced ChatGPT clone that supports multipl…6.5
- CVE-2026-54036LibreChat is an enhanced ChatGPT clone that supports multipl…8.1
- CVE-2026-54037LibreChat is an enhanced ChatGPT clone that supports multipl…6.5
- CVE-2026-5404K12 RF5 file parser crash in Wireshark 4.6.0 to 4.6.4 and 4.…5.5
- CVE-2026-5405RDP protocol dissector crash in Wireshark 4.6.0 to 4.6.4 and…7.8
- CVE-2026-54051Network-AI is a TypeScript/Node.js multi-agent orchestrator.…9.9
- CVE-2026-54052n8n-MCP is an MCP server that provides AI assistants access …9.9
- CVE-2026-54055Kitty is a cross-platform GPU based terminal. In versions pr…5
- CVE-2026-54056Kitty is a cross-platform GPU based terminal. In versions 0.…7.1
- CVE-2026-54057Kitty is a cross-platform GPU based terminal. In versions pr…7.8
Are you affected by CVE-2026-54040?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
