← All advisories

CVE-2026-137586highDenial of service2026-11-26

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.

01.

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.

02.

How to check

  1. Check your LibreChat image or git tag: anything below v0.8.9 has at least one of these bugs.
  2. If you use LDAP login (LDAP_URL set), look for repeated unexpected restarts or ldapjs assertion errors in the logs.
03.

How to fix

  1. Upgrade LibreChat to v0.8.9 or later (pull the new image and recreate the containers).
  2. 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
04.

Sources

Related on VibeVulns
More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.