CVE-2026-54042 — LibreChat-AI LibreChat
One of 12 LibreChat-AI LibreChat vulnerabilities published together by NVD: our article covers all of them.
AIVulnerabilitiesData protectionResearch article
LibreChat 0.8.7 Before: Repeated 2FA Code Guessing Vulnerability
| CVE | CVE-2026-54042 |
|---|---|
| Vendor and product | LibreChat-AI LibreChat |
| Published | November 25, 2026 20:40 UTC |
| Research cut-off | November 25, 2026 20:10 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-25); CISA KEV catalog; FIRST EPSS (2026-11-24) |
Executive summary
CVE-2026-54042 impacts LibreChat versions before 0.8.7, enabling attackers with valid credentials and a temporary token to guess 2FA codes without rate limiting [1]. The CVSS 3.1 score is 6.8 MEDIUM, scored by security-advisories@github.com [1]. The reviewed sources do not report exploitation [2]. The main action is to update to version 0.8.7 [1].
Key points
- CVE-2026-54042 affects LibreChat versions prior to 0.8.7 [1].
- The CVSS 3.1 score is 6.8 MEDIUM, scored by security-advisories@github.com [1].
- The reviewed sources do not report exploitation [2].
- The main action is to update to version 0.8.7 [1].
- The vulnerability allows repeated 2FA code guessing without rate limiting [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-54042 | LibreChat-AI | LibreChat | CWE-307 | 6.8 MEDIUM, scored by security-advisories@github.com | 2026-11-20T20:17:42 | 2026-11-25T05:18:37 | Received |
Vulnerability description
An attacker with valid primary credentials and a temporary token can attempt multiple second-factor verifications to guess 2FA codes without any restriction on the number of attempts, potentially leading to full session access once a correct code is identified [1]. This issue exists in LibreChat versions prior to 0.8.7 [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability is reachable over the network, has high attack complexity, requires low privileges, and needs no user interaction [1]. The attacker must already have valid primary credentials and a valid temporary token to exploit this issue [1].
Impact analysis
The CVSS vector suggests high risks to confidentiality and integrity, with no impact on availability. The vulnerability could allow an attacker to gain full session access if a valid code is guessed [1].
Affected products and versions
| Affected Product | Affected Version | Fixed Version |
|---|---|---|
| LibreChat-AI LibreChat | < 0.8.7 | 0.8.7 |
Exploitation and threat intelligence status
CVE-2026-54042 is not listed in the CISA KEV catalog as of 2026-11-25 [2]. The EPSS score estimates a 0.43% probability of exploitation within the next 30 days [3].
Detection and exposure assessment
Installed versions below 0.8.7 are listed as affected [1]; the sources do not describe a specific method for checking exposure.
Remediation
The vulnerability is resolved in version 0.8.7 [1].
Remediation checklist
- Update LibreChat to version 0.8.7 [1].
- Review authentication mechanisms for rate-limiting second-factor attempts.
- Monitor for unusual login activity or repeated failed 2FA attempts.
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not describe the technical mechanics of the flaw beyond the CVSS vector.
- The sources do not describe a scenario or attack lifecycle.
- The sources do not provide indicators of compromise.
- The sources do not list a fixed version beyond 0.8.7.
References
- CVE-2026-54042 record. NIST National Vulnerability Database (NVD), 2026-11-25. https://nvd.nist.gov/vuln/detail/CVE-2026-54042. Accessed 2026-11-25.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-25. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-25.
- EPSS score for CVE-2026-54042. FIRST, 2026-11-24. https://api.first.org/data/v1/epss?cve=CVE-2026-54042. Accessed 2026-11-25.
Summary
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.
Severity breakdown
Medium · 6.8
An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and integrity, none on availability
Weakness
- CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| LibreChat-AI LibreChat | < 0.8.7 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/LibreChat-AI/LibreChat/commit/5011be4d3864c66666166130f6e8e3…
- github.com/LibreChat-AI/LibreChat/pull/13555
- github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.7
Other references
Affected
- LibreChat-AI LibreChat
Frequently asked questions
What is CVE-2026-54042?
CVE-2026-54042 impacts LibreChat versions before 0.8.7, enabling attackers with valid credentials and a temporary token to guess 2FA codes without rate limiting. The CVSS 3.1 score is 6.8 MEDIUM, scored by security-advisories@github.com. The reviewed sources do not report exploitation. The main action is to update to version 0.8.7. Weakness type: Improper Restriction of Excessive Authentication Attempts (CWE-307).
How severe is CVE-2026-54042?
CVE-2026-54042 has a CVSS 3.1 base score of 6.8 (medium), from the CNA (github.com). An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-54042 being exploited?
Not as far as is known: CVE-2026-54042 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-54042?
LibreChat-AI LibreChat < 0.8.7.
How do I fix CVE-2026-54042?
Update LibreChat to version 0.8.7. Review authentication mechanisms for rate-limiting second-factor attempts. Monitor for unusual login activity or repeated failed 2FA attempts.