CVE-2026-54038
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.55% (higher than 40% of CVEs)
Published
Last changed
Assigned by
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.

Affected

Product or packageVersionsReported by
LibreChat-AI LibreChat>= 0.8.6-rc1, < 0.8.9CVE List

Classification

CWE-1333

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54038 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-54038 changed 2026-11-24Public domain