CVE-2026-54042
LibreChat: Missing Rate Limiting on 2FA Verification Endpoint Allows TOTP Guessing Attempts
- State
- Published
- Severity
- 6.8 Medium
- Published
- Nov 20, 2026
- Updated
- Nov 20, 2026
- Reserved
- Jun 11, 2026
Description
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.7, POST /api/auth/2fa/verify-temp in api/server/routes/auth.js calls verify2FAWithTempToken and accepts repeated TOTP or backup-code guesses without a dedicated attempt limiter. An attacker must first possess valid primary credentials and a valid five-minute temp token, but can then make repeated second-factor attempts and obtain a full session if a valid code is guessed. This issue is fixed in version 0.8.7.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.8 Medium | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N | GitHub_M |
Weaknesses
- CWE-307 Improper Restriction of Excessive Authentication Attempts
Affected Products
| Product | Versions |
|---|---|
LibreChatLibreChat-AI |
|
References
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-ch3w-5cqg-47qm
- https://github.com/LibreChat-AI/LibreChat/pull/13555
- https://github.com/LibreChat-AI/LibreChat/commit/5011be4d3864c66666166130f6e8e3cbd6b192ed
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.7
- https://www.librechat.ai/changelog/v0.8.7
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.