NetSight
medium6.5

CVE-2026-54038

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers.

Impact

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.

An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of outages.

Affected products

VendorProductAffected versions
Danny-avilaLibreChat
from 0.8.6-rc1, before 0.8.9
LibreChat-AILibreChat
Version >= 0.8.6-rc1, < 0.8.9

Weakness classification

References