MediumVulnerability
CVE-2026-54042: LibreChat 2FA verification unlimited code guessing via temp token endpoint
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-54042
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
Summary
LibreChat versions prior to 0.8.7 let the POST /api/auth/2fa/verify-temp endpoint in api/server/routes/auth.js accept repeated TOTP or backup-code guesses through verify2FAWithTempToken, with no dedicated attempt limiter. An attacker who already holds valid primary credentials and a valid five-minute temp token can keep guessing second-factor codes and obtain a full session if one is guessed.
Mitigation
Fixed in version 0.8.7.
Related items
- MediumCVE-2026-54026: LibreChat message injection via conversationId in request bodySimilar attack · NVD/CVE Database
- MediumCVE-2026-54046: LibreChat unauthenticated account enumeration via /api/user/verifySimilar attack · NVD/CVE Database
- HighCVE-2026-54044: LibreChat credential exposure through agent action domain repointingSimilar attack · NVD/CVE Database
- MediumCVE-2026-54043: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.7…Similar attack · NVD/CVE Database
- HighCVE-2026-54039: LibreChat account takeover through registration and social login email fallbackSimilar attack · NVD/CVE Database