Node.Js Service Vulnerability in LibreChat Affects User Group Permissions
CVE-2026-54038
6.5MEDIUM
What is CVE-2026-54038?
The vulnerability in LibreChat allows authenticated users with people-picker permission to exploit the GET /api/permissions/search-principals endpoint. By passing unescaped metacharacters to JavaScript RegExp and MongoDB regex queries, an attacker can craft catastrophic-backtracking patterns that block the Node.js event loop, leading to service unresponsiveness and errors for concurrent users. This issue was addressed in version 0.8.9, which includes proper escaping of metacharacters.
Affected Version(s)
LibreChat >= 0.8.6-rc1, < 0.8.9
