NetSight
medium6.8

CVE-2026-54042

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers.

Impact

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.

An attacker can exploit this over the network, with a regular user account, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed.

Affected products

VendorProductAffected versions
Danny-avilaLibreChat
before 0.8.7
Version < 0.8.7
LibreChat-AILibreChat
Version < 0.8.7

Weakness classification

References