CVE-2026-137588 in LibreChat
Summary
by MITRE • 11/26/2026
LibreChat 0.7.6 before 0.8.8 contains a denial of service vulnerability that allows authenticated users to block the server event loop by uploading a crafted conversation import file to POST /api/convos/import. Attackers can submit many messages with unresolvable parentMessageId values, triggering quadratic processing in cloneMessagesWithTimestamps or adjustTimestampsForOrdering and stalling the Node.js event loop for minutes for all users.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in LibreChat versions prior to 0.8.8 represents a significant denial of service risk stemming from inefficient algorithmic complexity within the conversation import functionality. Specifically, the endpoint POST /api/convos/import is susceptible to quadratic time complexity attacks when processing malformed or crafted input data. This flaw allows authenticated users to disrupt the availability of the application for all other users by exhausting server resources through a carefully constructed payload rather than requiring brute-force volume. The core technical issue lies in how the backend processes message hierarchies during import operations, particularly within functions responsible for cloning messages with timestamps and adjusting their ordering based on parent-child relationships.
When an attacker uploads a conversation file containing numerous messages where each subsequent message references a previous one via its identifier as a parentMessageId, but those identifiers are either missing or unresolvable in the current context, the system enters a problematic state. The functions cloneMessagesWithTimestamps and adjustTimestampsForOrdering attempt to resolve these relationships recursively or iteratively without sufficient bounds checking or optimization for large datasets with broken references. This results in an O(n squared) computational complexity where n is the number of messages processed. As the size of the imported conversation grows, the processing time increases exponentially rather than linearly, leading to severe performance degradation.
The operational impact of this vulnerability is profound due to the nature of Node.js as a single-threaded event loop runtime environment. When one request triggers such intensive computation within these functions, it blocks the main thread for an extended period, potentially lasting several minutes depending on the size and structure of the crafted payload. During this blockage, no other requests can be processed by the server, effectively causing a complete denial of service for all connected users regardless of their authentication status or intended actions. This creates a situation where a single authenticated user with minimal privileges can degrade the entire system's availability, violating fundamental security principles regarding resource isolation and fair usage policies.
From a classification perspective, this vulnerability aligns closely with CWE-400, which describes uncontrolled resource consumption leading to denial of service conditions. Furthermore, it maps to MITRE ATT&CK technique T1499, specifically Endpoint Denial of Service via application layer exhaustion. The attack vector requires authentication, placing it within the scope of authenticated attacks that exploit logic flaws rather than input validation failures alone. This distinction is critical for defenders as traditional perimeter defenses may not detect such traffic since it appears to be legitimate API usage from a valid user account.
Mitigation strategies must focus on both immediate patching and long-term architectural improvements. The primary remediation involves upgrading LibreChat to version 0.8.8 or later, where the underlying algorithms have been optimized to handle large datasets more efficiently and prevent quadratic processing behaviors. For environments unable to upgrade immediately, implementing rate limiting on the /api/convos/import endpoint can help mitigate the impact by restricting the frequency of import operations per user. Additionally, introducing strict limits on the maximum number of messages allowed in a single import file would cap the potential computational load. Input validation should also be enhanced to detect and reject conversation structures with excessive depth or circular references before they reach the processing logic. Monitoring server CPU usage and event loop latency can provide early warning signs of such attacks being attempted, allowing for rapid response through automated blocking mechanisms.