{"id":"CVE-2026-54038","aliases":[],"title":"LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search","originalDescription":"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.","severity":{"cvss":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00548,"percentile":0.39539},"exploitDb":null},"affected":[],"references":[{"url":"https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7","type":"x_refsource_CONFIRM"},{"url":"https://github.com/LibreChat-AI/LibreChat/pull/16719","type":"x_refsource_MISC"},{"url":"https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb","type":"x_refsource_MISC"},{"url":"https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9","type":"x_refsource_MISC"},{"url":"https://www.librechat.ai/changelog/v0.8.9","type":"x_refsource_MISC"}],"sources":[{"name":"nvd","at":"2026-11-24T17:56:04.826Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54038","license":"NVD terms of use","firstSeenAt":"2026-11-20T21:22:14.519Z"},{"name":"cvelistV5","at":"2026-11-27T08:11:53.518Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-54038","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T20:46:34.607Z"}],"firstSeenAt":"2026-11-20T20:46:34.607Z","publishedAt":"2026-11-20T20:14:52.259Z","modifiedAt":"2026-11-24T17:54:52.597Z"}