Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach LDAP-enabled /api/auth/login
-
DeliverySend login JSON with valid email and non-string password
-
Exploitldapjs bind assertion throws in socket callback
-
ExecutionuncaughtException handler calls process.exit(1)
-
ImpactRepeat per restart to sustain outage
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Specified type validation
|
| Exploitation Conditions | Requires LDAP authentication to be enabled: both LDAP_URL and LDAP_USER_SEARCH_BASE must be set (auth.js:70-81), which is NOT the default LibreChat configuration. The attacker must also supply the email of a user that actually exists in the directory - the vulnerable bind runs only after the LDAP user search returns a match (confirmed by the advisory's control: a non-existent email returns 404 and the server stays up). The crash additionally depends on CONTINUE_ON_UNCAUGHT_EXCEPTION being unset (its default), so the uncaughtException handler calls process.exit(1). Triggering values are a non-zero number or boolean true as the password; falsy values ('', 0, false) and objects/arrays are rejected earlier as 'Missing credentials'. No authentication (PR:N) and no user interaction are needed beyond knowing a valid directory email. Local login is unaffected because its loginSchema requires a string password. Limiting factors for defenders: non-default LDAP deployment, knowledge of a valid directory email, and availability-only impact (no data exposure). |
| Impact | This is a genuine but conditional availability risk, not a blanket high-severity emergency. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H, 8.7) and the maintainer's CVSS 3.1 equivalent (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) agree: unauthenticated, network-reachable, low-complexity, with impact confined entirely to availability (no confidentiality or integrity loss). A single request crashes the Node.js process and, because the shipped docker-compose files set restart: always, each repeat kills it again, making sustained denial of service trivial once preconditions are met. The crucial moderating signals come from the evidence rather than the raw score: exploitation only applies when LDAP login is configured (LDAP_URL and LDAP_USER_SEARCH_BASE set) - which is not the default - and the attacker must know the email of an existing directory user, as the advisory's own controls show the bind runs only after a successful user search. No EPSS score and no KEV status are provided in the input, so there is no signal of active or widespread exploitation; the vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a patch-this-cycle priority. The 8.7 (4.0) versus 7.5 (3.1) gap reflects scoring-system differences for pure availability impact, not conflicting facts. Note the scope qualifier: the VA:H rating is well-supported for an LDAP-enabled deployment but irrelevant to the default (non-LDAP) configuration. |
| Exploit ScenarioDerived | An attacker who knows one valid directory email on a LibreChat instance that has LDAP login enabled sends a single unauthenticated POST to /api/auth/login with that email and a non-string password (e.g. the number 1 or boolean true). ldapjs throws an assertion in a socket callback that no Express frame catches, the uncaughtException handler calls process.exit(1), and the server dies; with restart: always the attacker simply repeats the request to keep it down. The GHSA advisory includes a working curl reproduction, so the trigger is publicly documented. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Unauthenticated denial of service in LibreChat 0.7.9 through 0.8.8 lets a remote attacker terminate the Node.js server process with a single crafted login request - but only on deployments where LDAP authentication is enabled and the attacker knows an email that exists in the directory. A JSON POST to /api/auth/login carrying a valid directory email and a non-string password (a non-zero number or boolean true) reaches an LDAP bind that ldapjs rejects with an assertion; the throw occurs inside a socket callback, escapes Express entirely, and the application's uncaughtException handler calls process.exit(1). With restart: always set in the shipped compose files, each request costs a full restart, so repeating it keeps the service unavailable; no public exploit code is confirmed at time of analysis, though the vendor advisory itself documents the reproduction request, and active exploitation has not been recorded in CISA KEV.
RemediationAI
Upgrade to LibreChat v0.8.9, which contains the fix commit 3de814c0fa adding validateLdapCredentials so that non-string or empty email and password values are rejected with HTTP 400 before Passport runs; release notes are at https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9, the commit at https://github.com/LibreChat-AI/LibreChat/commit/3de814c0fab9b7347db68417784834a166ea7381, and the advisory at https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-572g-g8hc-w8c9. If upgrading is not immediately possible, the most direct compensating control is to disable LDAP login - unset LDAP_URL and LDAP_USER_SEARCH_BASE so the vulnerable requireLdapAuth path is not mounted - at the cost of falling back to local accounts for all users, or alternatively place an inspection rule on the reverse proxy or WAF in front of /api/auth/login that rejects JSON bodies whose password member is not a string, which the advisory's tests show blocks the trigger (numbers, booleans and objects) while leaving legitimate string passwords untouched. Note that the exit path depends on CONTINUE_ON_UNCAUGHT_EXCEPTION being unset; enabling it changes process lifecycle behavior rather than validating the input and is not presented by the vendor as a fix. Removing restart: always from the API service would slow the restart loop but leaves the service down after the first request, and because LDAP is not enabled by default, confirming whether LDAP_URL and LDAP_USER_SEARCH_BASE are set in your deployment is the fastest way to determine whether you are exposed at all.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LibreChat routes POST /api/auth/login through the requireLdapAuth middleware whenever LDAP_URL and LDAP_USER_SEARCH_BASE are set, and nothing on that path checks the type of the JSON password field. The middleware hands credentials to passport-ldapauth 3.0.1, which rejects only falsy credentials and whose lookup returns null for objects and arrays, so numeric and boolean values pass through; ldapauth-fork 5.0.5 then rejects only undefined, null and the empty string, performs the directory search, and from the search 'end' handler reaches an LDAP bind with the unvalidated value and no try/catch. ldapjs 2.3.3 runs assert.optionalString(credentials) inside that bind, which throws on a non-string, and because the callback chain is entered from the socket 'data' handler rather than from a request frame, Express never sees the error. The root cause maps to CWE-1287 (improper validation of specified type of input), with the resulting condition described in the upstream advisory as CWE-248 (uncaught exception). The crash-to-exit behavior additionally depends on CONTINUE_ON_UNCAUGHT_EXCEPTION being unset, which is the default in .env.example. Local (email/password) login is not affected because its loginSchema validates that password is a string; the fix adds a validateLdapCredentials middleware in packages/api/src/middleware/ldap.ts that returns 400 for any non-string or empty email/password before Passport is invoked. Note that requireSameOrigin permits requests with no Origin or Sec-Fetch-Site header, so a plain curl request is sufficient.
Know when Librechat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable, low-complexity single request with no authentication (PR:N) and no user interaction; impact is availability-only process termination, so C:N/I:N/A:H, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
LibreChat 0.7.3 before 0.8.9 contains an improper input type validation vulnerability in the requireLdapAuth middleware of the /api/auth/login route that allows unauthenticated attackers to crash the server. Attackers can send a JSON login request with an existing directory user's email and a non-string password, triggering an ldapjs assertion error that terminates the Node.js process.
Articles & Coverage 2
Technical POC Analysis
CWE class: improper validation of specified type of input (CWE-1287, as recorded in the CVE); the GitHub advisory GHSA-572g-g8hc-w8c9 additionally tags it CWE-248 (Uncaught Exception), because the in…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
LibreChat versions 0.7.9 through 0.8.8 with LDAP authentication enabled are vulnerable to an unauthenticated denial-of-service attack that can crash the entire service with a single crafted login request. This allows any remote attacker who knows a valid directory email to repeatedly disrupt chat services, causing operational downtime and potential loss of user trust. Leadership should prioritize patching because the attack requires no credentials and can be automated to maintain service unavailability.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f
An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap
LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through
LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v
Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to c
LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex
LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests
In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (
A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),
Unbounded `key` and `value` parameters on the LibreChat 0.7.9 memory API (`POST /api/memories` and `PATCH /api/memories/
An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead
An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat
EUVD-2026-136487
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB