CVE-2026-54038

MEDIUM CVSS 3.1: 6.5 EPSS 0.48%
Updated Nov 24, 2026
MongoDB
Parameter Value
CVSS 6.5 (MEDIUM)
Fixed In 0.8.9
Type CWE-1333 (Inefficient Regular Expression Complexity / ReDoS)
Vendor MongoDB
Public PoC No

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.9, GET /api/permissions/search-principals passes the q parameter to JavaScript RegExp construction and MongoDB regex queries in packages/data-schemas/src/methods/userGroup.ts findGroupsByNamePattern and searchPrincipals without escaping metacharacters. An authenticated user with people-picker permission can submit a catastrophic-backtracking pattern that blocks the Node.js event loop and makes the service unresponsive to concurrent users; invalid patterns can also produce server errors.

This issue is fixed in version 0.8.9.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1