CVE-2026-54038 LibreChat: Server-Side ReDoS via Unescaped Regex in Principal Search
설명
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
LibreChat-AI
LibreChat
영향 받는 버전
- 0.8.6-rc1 이상 0.8.9 미만
해결 버전
- 0.8.9 이상
참고 자료 5건
- github.com https://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb (새 창)
- github.com https://github.com/LibreChat-AI/LibreChat/pull/16719 (새 창)
- github.com https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9 (새 창)
- github.com https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7 (새 창)
- librechat.ai https://www.librechat.ai/changelog/v0.8.9 (새 창)