Missing Authentication for Critical Function in LibreChat - #VU133264

 

Missing Authentication for Critical Function in LibreChat - #VU133264

Published: June 3, 2026


Vulnerability identifier: #VU133264
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-306
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: LibreChat
Affected software:
LibreChat

Detailed vulnerability description

The vulnerability allows a remote user to bypass two-factor authentication and disable two-factor authentication.

The vulnerability exists due to missing authentication for a critical function in the POST /api/auth/2fa/backup/regenerate endpoint when handling requests to regenerate backup codes. A remote user can send a crafted authenticated request using a stolen session token to bypass two-factor authentication and disable two-factor authentication.

The endpoint also returns newly generated plaintext backup codes and their hashes in the response.


Remediation

Install security update from vendor's website.

Sources