{"affected":[{"product":"LibreChat","source":"CNA: GitHub_M","vendor":"LibreChat-AI","versions":[{"status":"affected","version":">= 0.8.6-rc1, < 0.8.9"}]}],"cveId":"CVE-2026-54038","cwes":["CWE-1333"],"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.","epss":{"date":"2026-11-23","percentile":0.42315,"score":0.00481},"exploits":[],"kev":null,"metrics":[{"score":6.5,"severity":"medium","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"score":6.5,"severity":"medium","source":"NVD: security-advisories@github.com","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}],"modifiedAt":1795481574027,"publishedAt":1795205692259,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/LibreChat-AI/LibreChat/pull/16719"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://www.librechat.ai/changelog/v0.8.9"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/LibreChat-AI/LibreChat/pull/16719"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7"},{"source":"security-advisories@github.com","tags":[],"url":"https://www.librechat.ai/changelog/v0.8.9"}],"remediation":[],"revision":"d5d79ed5debf71dc22a168d514f07f2e58d96d3a78712d3706553c171e6765fc","sources":[{"modifiedAt":1795481574027,"name":"CNA: GitHub_M","retrievedAt":1795482622659,"url":"https://www.cve.org/CVERecord?id=CVE-2026-54038"},{"modifiedAt":1795209458030,"name":"NVD","retrievedAt":1795220300687,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54038"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795482635405,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54038"}],"ssvc":{"assessedAt":1795479734289,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search","updatedAt":1795482635405}