CVE-2026-54038
published medium CVSS 3.1 · 6.5LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| LibreChat-AI | — | LibreChat>= 0.8.6-rc1, < 0.8.9 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| LibreChat-AI | LibreChat | >= 0.8.6-rc1, < 0.8.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
5- https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb
- https://github.com/LibreChat-AI/LibreChat/pull/16719
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7
- https://www.librechat.ai/changelog/v0.8.9
Provider assertions
2GitHub_M · cna
LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b2ec0b81043544d5702abe18b13e1b4f4a862b5ce316c9c8442411872df70ddb
- Ingested
- 24 Nov 2026, 00:54:29 UTC
- Source record
- Official CVE record