CVE-2026-54038
LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search
Description
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.
INFO
Published Date :
Nov. 20, 2026, 8:14 p.m.
Last Modified :
Nov. 20, 2026, 8:14 p.m.
Remotely Exploit :
No
Source :
GitHub_M
Solution
- Update LibreChat to version 0.8.9 or later.
- Apply vendor patches for vulnerability.
- Validate input for special characters.
- Monitor system for performance issues.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-54038 vulnerability anywhere in the article.