CVE-2026-54038
MEDIUM 6.5CVSS 3.1LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search
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.
- Published
- 20 Nov 2026
- Last modified
- 24 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-1333
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | LibreChat-AI | LibreChat | = >= 0.8.6-rc1, < 0.8.9 |
References
- https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb · x_refsource_MISC
- https://github.com/LibreChat-AI/LibreChat/pull/16719 · x_refsource_MISC
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9 · x_refsource_MISC
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7 · x_refsource_CONFIRM
- https://www.librechat.ai/changelog/v0.8.9 · x_refsource_MISC
History
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 20 Nov 2026)
- 25 Nov 2026 20:11 UTC · NVD: first stored (published 20 Nov 2026)