Skip to content
MediumVulnerability

CVE-2026-54042: LibreChat 2FA verification unlimited code guessing via temp token endpoint

Identifier
CVE-2026-54042
Published
Record updated
View JSON
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.