CVE-2026-54038: medium-severity vulnerability in LibreChat-AI LibreChat
LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 6.5epss 0.5%
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected products
LibreChat-AI · LibreChatRelated CVEs — LibreChat-AI LibreChat
In the same product, most dangerous first.
CVE-2026-54046MEDIUMLibreChat: Unauthenticated User Enumeration via Email Verification EndpointEPSS 0.8%CVE-2026-54039HIGHLibreChat: Pre-registration account takeover via attacker-controlled `provider` field and social-login email fallbackEPSS 0.7%CVE-2026-54023MEDIUMLibreChat: Federated OAuth Tokens Exposed via `/api/user` EndpointEPSS 0.6%CVE-2026-54041LOWLibreChat: Plaintext password logged on login validation errorEPSS 0.6%CVE-2026-54045MEDIUMLibreChat: Password Reset Can Wipe Email-Verification Tokens When Verification Is EnforcedEPSS 0.5%CVE-2026-54044HIGHLibreChat: Shared-Agent Editor Can Exfiltrate Owner Action API Keys via OpenAPI Spec SwapEPSS 0.5%
References
https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cbhttps://github.com/LibreChat-AI/LibreChat/pull/16719https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7https://www.librechat.ai/changelog/v0.8.9