Summary
CVE-2026-137586 is an improper input type validation vulnerability (CWE-1287) in the LDAP authentication middleware of LibreChat. It allows an unauthenticated remote attacker to crash the server, causing a denial of service. The CVSS v4.0 score is 8.7 (High).
Technical details
- Root cause: the
requireLdapAuthmiddleware on the/api/auth/loginroute does not validate that the password is a string. - Trigger conditions: LDAP authentication must be enabled (it is not on by default), and the attacker must know a valid user email in the directory.
- Attack vector: the attacker sends a JSON login request with a valid user email and a non-string password value over the network, with no authentication or user interaction.
- Impact: the non-string value triggers an ldapjs assertion error that terminates the Node.js process, taking the LibreChat server down (availability impact only).
Affected software
- LibreChat 0.7.3 through 0.8.8 (inclusive), in deployments with LDAP authentication enabled
Severity
- CVSS v4.0: 8.7 (High) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High) –
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Mitigation and recommended actions
- Immediate: upgrade LibreChat to version 0.8.9 or later.
- No other workaround is documented in the sources reviewed. Until you can patch, consider restricting network access to the login endpoint of any instance that has LDAP authentication enabled.

