๐Ÿ” CVE Alert

CVE-2026-54038

MEDIUM 6.5

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

CVSS Score
6.5
EPSS Score
0.5%
EPSS Percentile
42th

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.

CWE CWE-1333
Vendor librechat-ai
Product librechat
Published Nov 20, 2026
Last Updated Nov 24, 2026
Stay Ahead of the Next One

Get instant alerts for librechat-ai librechat

Be the first to know when new medium vulnerabilities affecting librechat-ai librechat are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

LibreChat-AI / LibreChat
>= 0.8.6-rc1, < 0.8.9

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7 github.com: https://github.com/LibreChat-AI/LibreChat/pull/16719 github.com: https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb github.com: https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9 librechat.ai: https://www.librechat.ai/changelog/v0.8.9