Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-54038: medium-severity vulnerability (CVSS 6.5) in LibreChat-AI LibreChat.
What happened
Original description from the source: 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.
Why it matters
Medium severity, CVSS 6.5.
Affected products and versions
LibreChat-AI LibreChat >= 0.8.6-rc1, < 0.8.9
| Product | Versions | Fixed in |
|---|---|---|
| LibreChat-AI LibreChat | >= 0.8.6-rc1, < 0.8.9 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7 — CVE Program
- https://github.com/LibreChat-AI/LibreChat/pull/16719 — CVE Program
- https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb — CVE Program
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9 — CVE Program
- https://www.librechat.ai/changelog/v0.8.9 — CVE Program
Weaknesses (CWE): CWE-1333
Relevant change history
Published
Preliminary advisory published.