CVE-2026-54038

published 20 Nov 2026 · updated 20 Nov 2026

LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LibreChat-AI>=0.8.6-rc1 <0.8.9

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-54038 severity on Zeptric[![CVE-2026-54038](https://zeptric.io/badge/cve/CVE-2026-54038.svg)](https://zeptric.io/cve/CVE-2026-54038)