CVE-2026-54038: LibreChat Regular Expression DoS
Published 2026-11-20 · Updated 2026-11-24 · Source security-advisories@github.com
Not known to be exploited · medium severity — update LibreChat to 0.8.9 or later on your normal schedule.
What to do
- Update LibreChat to version 0.8.9 or later. Versions before 0.8.9 are affected.
- Until it is patched, restrict network access to LibreChat and review which accounts can log in to it.
- Limit input length and apply request timeouts in front of the affected service.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| LibreChat | < 0.8.9 | 0.8.9 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker needs an ordinary low-privileged account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | Low | The attacker needs an ordinary low-privileged account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: Regular Expression DoS
Crafted input makes a regular expression take excessive time, tying up the service.
Classified as 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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff01becf619cb
- Patchhttps://github.com/LibreChat-AI/LibreChat/pull/16719
- Patchhttps://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9
- Patchhttps://www.librechat.ai/changelog/v0.8.9
- Advisoryhttps://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-fmfv-wxj3-m7x7