Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

CVE-2026-54038 — LibreChat-AI LibreChat

Medium · CVSS 6.5EPSS 0.5% First seen November 20, 2026

One of 12 LibreChat-AI LibreChat vulnerabilities published together by NVD: our article covers all of them.

JavaScriptWebAIDatabasesVulnerabilities

Research article

LibreChat Vulnerability Allows Denial of Service via Malformed Regular Expressions

CVECVE-2026-54038
Vendor and productLibreChat-AI LibreChat
PublishedNovember 25, 2026 20:25 UTC
Research cut-offNovember 25, 2026 20:01 UTC
Sources reviewed3: 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 IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-54038LibreChat-AILibreChatCWE-13336.5 MEDIUM2026-11-202026-11-24Awaiting 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 VersionFixed Version
LibreChat-AI LibreChat >= 0.8.6-rc1, < 0.8.90.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

  1. Upgrade LibreChat-AI LibreChat to version 0.8.9 or newer [1].
  2. Audit the application's access controls to ensure only authorized users can interact with the /api/permissions/search-principals endpoint.
  3. 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

  1. 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. Vulnerability identification, Vulnerability description, Attack surface and exploitation prerequisites, Impact analysis, Affected products and versions, Remediation
  2. 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. Exploitation and threat intelligence status
  3. 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. Exploitation and threat intelligence status

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 6.5 CVSS 3.1 base score from the CNA (github.com)

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

Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Affected and fixed versions

ProductAffected versionsFixed in
LibreChat-AI LibreChat>= 0.8.6-rc1, < 0.8.9—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain).

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