LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search
Summary
| CVE | CVE-2026-54038 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-20 21:17:38 UTC |
| Updated | 2026-11-24 17:54:52 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.004810000 probability, percentile 0.420330000 (date 2026-11-24)
Problem Types: CWE-1333 | CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | LibreChat-AI | LibreChat | affected >= 0.8.6-rc1, < 0.8.9 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01... | [email protected] | github.com | |
| www.librechat.ai/changelog/v0.8.9 | [email protected] | www.librechat.ai | |
| github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9 | [email protected] | github.com | |
| github.com/LibreChat-AI/LibreChat/pull/16719 | [email protected] | github.com | |
| github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.