CVE-2026-137586: one unauthenticated LDAP login request with a non-string password stopped LibreChat, plus a conversation-import DoS and a credit auto-refill race (fixed 0.8.8 / 0.8.9)
LibreChat, the open-source multi-model AI chat app, fixed three more bugs that got CVEs on 26 November 2026. The serious one: with LDAP login enabled, sending POST /api/auth/login with an existing directory user's email and a non-string password (a number or true) made ldapjs throw an uncaught assertion, and LibreChat exited. One unauthenticated request stops the server, and again after every restart. Also fixed: a crafted conversation import could stall the event loop for minutes for all users, and concurrent chat requests could claim the balance auto-refill several times.
What it is
CVE-2026-137586 (GHSA-572g-g8hc-w8c9, CWE-1287): requireLdapAuth passed the JSON password to the LDAP bind without a type check; ldapjs asserts in a socket callback and the uncaughtException handler calls process.exit(1). Needs LDAP enabled and a known directory email. NVD: 0.7.3 before 0.8.9; the maintainers reproduced it on 0.7.9 and 0.8.8. Fixed in 0.8.9 (commit 3de814c).
CVE-2026-137588 (GHSA-r38q-3g6w-gc58, CWE-407): an authenticated user uploading a conversation import with many messages whose parentMessageId can't be resolved triggered quadratic work in cloneMessagesWithTimestamps / adjustTimestampsForOrdering, blocking the Node.js event loop for minutes. 0.7.6 before 0.8.8; fixed in 0.8.8.
CVE-2026-137656 (GHSA-32pj-j526-963j, CWE-362, low): checkBalance's lastRefill check wasn't locked, so simultaneous chat requests each received refillAmount credits and bypassed token credit limits. 0.7.8 before 0.8.9; fixed in 0.8.9.
All three were published to NVD by VulnCheck on 26 November 2026.
How to check
- Check your LibreChat image or git tag: anything below v0.8.9 has at least one of these bugs.
- If you use LDAP login (LDAP_URL set), look for repeated unexpected restarts or ldapjs assertion errors in the logs.
How to fix
- Upgrade LibreChat to v0.8.9 or later (pull the new image and recreate the containers).
- Until then, restart policies only mask the LDAP crash: put rate limiting on /api/auth/login, and consider disabling conversation import for untrusted users.
# Docker Compose install: pull v0.8.9+ and recreate
docker compose pull && docker compose up -d Sources
- highCVE-2026-54044: In LibreChat, a collaborator with EDIT access to a shared agent could repoint an action to their own server and receive the owner's stored API key (fixed 0.8.7)
- highCVE-2026-54039: LibreChat let an unauthenticated attacker pre-register a victim's email with a forged social provider and share the account once the victim signed in with Google or another provider (fixed 0.8.6)