Home › CVE › JavaScript
CVE-2026-54038 — LibreChat-AI LibreChat
One of 12 LibreChat-AI LibreChat vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebAIDatabasesVulnerabilitiesResearch article
LibreChat Vulnerability Allows Denial of Service via Malformed Regular Expressions
| CVE | CVE-2026-54038 |
|---|---|
| Vendor and product | LibreChat-AI LibreChat |
| Published | November 25, 2026 20:25 UTC |
| Research cut-off | November 25, 2026 20:01 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-24); CISA KEV catalog; FIRST EPSS (2026-11-24) |
Executive summary
CVE-2026-54038 impacts LibreChat versions before 0.8.9, enabling authenticated users to cause a denial of service by sending improperly formed regular expressions [1]. The CVSS 3.1 score is 6.5 MEDIUM, with a significant effect on availability [1]. The sources do not indicate any exploitation has been reported [2]. The main recommendation is to upgrade to version 0.8.9 [1].
Key points
- CVE-2026-54038 affects LibreChat versions before 0.8.9 [1].
- An authenticated user can trigger a denial of service by sending a malformed regular expression [1].
- The CVSS 3.1 score is 6.5 MEDIUM, with a high impact on availability [1].
- The reviewed sources do not report exploitation [2].
- The vulnerability is fixed in version 0.8.9 [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-54038 | LibreChat-AI | LibreChat | CWE-1333 | 6.5 MEDIUM | 2026-11-20 | 2026-11-24 | Awaiting Analysis |
Vulnerability description
An authenticated user who has access to the people-picker feature can input a specially crafted regular expression into the /api/permissions/search-principals endpoint, leading to a denial of service due to excessive backtracking in the regex engine [1]. This issue is resolved in version 0.8.9 [1].
Attack surface and exploitation prerequisites
The vulnerability requires an authenticated user with the people-picker permission to send a malformed regular expression to the /api/permissions/search-principals endpoint [1]. The CVSS scoring indicates that the attack occurs over a network, needs low privileges, and does not require user interaction [1].
Impact analysis
The CVSS 3.1 score reflects a high impact on availability, with no effect on confidentiality or integrity [1]. The vulnerability can cause the service to stop responding to simultaneous users [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| LibreChat-AI LibreChat >= 0.8.6-rc1, < 0.8.9 | 0.8.9 |
Exploitation and threat intelligence status
CVE-2026-54038 is not present in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-25 [2]. The EPSS score estimates a 0.48% chance of exploitation within the next 30 days, with a percentile rank of 0.4203 [3].
Detection and exposure assessment
To determine if an organization is affected, verify if the installed version of LibreChat-AI LibreChat falls within the vulnerable range (>= 0.8.6-rc1, < 0.8.9) [1].
Remediation
The vulnerability is resolved in version 0.8.9 [1]. Users should update to this version to reduce the risk [1].
Remediation checklist
- Upgrade LibreChat-AI LibreChat to version 0.8.9 or newer [1].
- Audit the application's access controls to ensure only authorized users can interact with the /api/permissions/search-principals endpoint.
- Review system logs for any signs of suspicious activity that might suggest exploitation attempts.
Evidence gaps
- The sources do not explain the internal workings of the affected component.
- The sources do not mention any alternative solutions.
- The sources do not describe the technical details of the flaw beyond the CWE identifier.
- The sources do not provide specific exploitation scenarios or steps in the attack lifecycle.
References
- CVE-2026-54038 record. NIST National Vulnerability Database (NVD), 2026-11-24. https://nvd.nist.gov/vuln/detail/CVE-2026-54038. Accessed 2026-11-25.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-25. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-25.
- EPSS score for CVE-2026-54038. FIRST, 2026-11-24. https://api.first.org/data/v1/epss?cve=CVE-2026-54038. Accessed 2026-11-25.
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.
Severity breakdown
Medium · 6.5
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
- CWE-1333: Inefficient Regular Expression Complexity
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| LibreChat-AI LibreChat | >= 0.8.6-rc1, < 0.8.9 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/LibreChat-AI/LibreChat/commit/de9d46fcd4f45feff849a848a84ff0…
- github.com/LibreChat-AI/LibreChat/pull/16719
- github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9
Other references
Affected
- LibreChat-AI LibreChat
Frequently asked questions
What is CVE-2026-54038?
CVE-2026-54038 impacts LibreChat versions before 0.8.9, enabling authenticated users to cause a denial of service by sending improperly formed regular expressions. The CVSS 3.1 score is 6.5 MEDIUM, with a significant effect on availability. The sources do not indicate any exploitation has been reported. The main recommendation is to upgrade to version 0.8.9. Weakness type: Inefficient Regular Expression Complexity (CWE-1333).
How severe is CVE-2026-54038?
CVE-2026-54038 has a CVSS 3.1 base score of 6.5 (medium), from the CNA (github.com). An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-54038 being exploited?
Not as far as is known: CVE-2026-54038 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-54038?
LibreChat-AI LibreChat >= 0.8.6-rc1, < 0.8.9.
How do I fix CVE-2026-54038?
Upgrade LibreChat-AI LibreChat to version 0.8.9 or newer. Audit the application's access controls to ensure only authorized users can interact with the /api/permissions/search-principals endpoint. Review system logs for any signs of suspicious activity that might suggest exploitation attempts.
Timeline & sources
References
Related vulnerabilities & news
- GHSA-c4hm-4h84-2cf3 / CVE-2026-59726 — ruflo MCP bridge allows unauthenticated remote code execution in default Docker Compose deployments
- CVE-2026-137469 — siyuan-note siyuan
- AI Engine – MCP Server & AI Chatbot for WordPress Vulnerable to Limited Arbitrary File Upload
- EverOS Cross-Origin Local File Disclosure Vulnerability
- Critical Node.js simple-git Library Vulnerability Enables Remote Code Execution Attacks