HackerFeeds
All CVEs

CVE-2026-54038: LibreChat Regular Expression DoS

MEDIUM6.5

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

  1. Update LibreChat to version 0.8.9 or later. Versions before 0.8.9 are affected.
  2. Until it is patched, restrict network access to LibreChat and review which accounts can log in to it.
  3. Limit input length and apply request timeouts in front of the affected service.

Affected and fixed versions

ProductAffectedFixed in
LibreChat< 0.8.90.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.

CVSS 3.1 metrics for CVE-2026-54038
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredLowThe attacker needs an ordinary low-privileged account.
User interactionNoneNo action by a victim is needed.
ConfidentialityNoneNo effect on confidentiality.
IntegrityNoneNo effect on integrity.
AvailabilityHighTotal 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.

View on NVD