CVE-2026-54038
LibreChat is an enhanced ChatGPT clone that supports multiple AI …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb
- github.com/LibreChat-AI/LibreChat/pull/16719
- github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9
- github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7
- www.librechat.ai/changelog/v0.8.9
- nvd.nist.gov/vuln/detail/CVE-2026-54038
- cve.org/CVERecord?id=CVE-2026-54038
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.