Skip to main content

LibreChat EUVDEUVD-2026-136487

| CVE-2026-137586 HIGH
Improper Validation of Specified Type of Input (CWE-1287)
2026-11-26 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach LDAP-enabled /api/auth/login
  2. Delivery
    Send login JSON with valid email and non-string password
  3. Exploit
    ldapjs bind assertion throws in socket callback
  4. Execution
    uncaughtException handler calls process.exit(1)
  5. Impact
    Repeat 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

LibreChat 0.7.3 <0.8.9

Affected Packages

euvd librechat fix: 0.8.9

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 46% exploitable
Prevalence
Low
self-hosted AI chat app; LDAP auth mode is non-default and niche
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2024-11170 HIGH POC
8.8 Mar 20

A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f

CVE-2024-10361 CRITICAL POC
9.1 Mar 20

An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap

CVE-2026-22252 CRITICAL POC
9.1 Jan 12

LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through

CVE-2025-8850 HIGH POC
8.8 Oct 30

LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v

CVE-2025-66450 HIGH POC
8.6 Dec 11

Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to c

CVE-2025-66201 HIGH POC
8.6 Nov 29

LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex

CVE-2025-69222 HIGH POC
8.1 Jan 07

LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests

CVE-2024-11171 HIGH POC
7.5 Mar 20

In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (

CVE-2025-7104 HIGH POC
7.5 Sep 29

A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),

CVE-2025-8849 HIGH POC
7.5 Oct 31

Unbounded `key` and `value` parameters on the LibreChat 0.7.9 memory API (`POST /api/memories` and `PATCH /api/memories/

CVE-2024-11173 MEDIUM POC
6.5 Mar 20

An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead

CVE-2024-10366 MEDIUM POC
6.5 Mar 20

An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy