LibreChat 2FA check lacks rate limiting, allowing code guessing
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-307.
Summary
LibreChat before 0.8.7 lets an attacker with valid primary credentials and a valid temp token make repeated second-factor guesses at POST /api/auth/2fa/verify-temp. The endpoint has no dedicated limit on attempts, which is CWE-307 (improper restriction of excessive authentication attempts). An attacker who guesses a valid TOTP or backup code obtains a full session, and the attack needs high complexity and no user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| LibreChat-AI | LibreChat | before 0.8.7 | 0.8.7 | Patch available | CNA |
- LibreChat VendorLibreChat-AI Affected before 0.8.7 Fixed in 0.8.7 Patch available CNA
Remediation
LibreChat version 0.8.7 fixes this issue, so upgrade LibreChat to 0.8.7 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA LibreChat (LibreChat-AI) Fixed in 0.8.7
Timeline
- 2026-11-20 Threatist record created from CVE-2026-54042
- 2026-11-20 Affected versions changed · CNA
- 2026-11-25 CISA SSVC decision points changed
References
Other 5
- 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
More LibreChat-AI vulnerabilities
- TI-2026-96065 LibreChat: Pre-registration account takeover via attacker-controlled `provider` field and social-login email fallback CVSS 3.1HIGH 8.1
- TI-2026-96070 Password reset deletes pending email-verification tokens in LibreChat CVSS 3.1MEDIUM 6.5
- TI-2026-96071 User enumeration via email verification endpoint in LibreChat CVSS 3.1MEDIUM 5.3
- TI-2026-96072 Message injection into other users' conversations in LibreChat CVSS 3.1MEDIUM 6.5
- TI-2026-96063 LibreChat MCP OAuth requests follow redirects to internal addresses CVSS 3.1MEDIUM 6.3
- TI-2026-96066 Plaintext password logged on LibreChat login validation error CVSS 3.1LOW 3.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences