{"id":"CVE-2026-54038","aliases":["CVE-2026-54038"],"related":[],"kind":"vulnerability","state":"published","title":"LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-20T20:14:52.259Z","modified":"2026-11-24T17:54:52.597Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":">= 0.8.6-rc1, < 0.8.9","status":"affected"}],"vendor":"LibreChat-AI","product":"LibreChat","source":"cvelist"}],"references":[{"url":"https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/LibreChat-AI/LibreChat/pull/16719","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://www.librechat.ai/changelog/v0.8.9","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-24T00:22:14.289Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54038","url":"https://www.cve.org/CVERecord?id=CVE-2026-54038","licence":"CVE Terms of Use","modified":"2026-11-24T00:52:54.027Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54038","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54038","licence":"Public domain","modified":"2026-11-24T17:54:52.597Z"}],"updatedAt":"2026-11-25T22:59:52.477Z","epss":{"score":0.00548,"percentile":0.39539,"date":"2026-11-29T12:00:22.000Z"}}