PT-2026-153447
CVE-2026-54038
·
Published
2026-11-20
·
Updated
2026-11-20
Description by
CVSS 3.1
6.5
MediumMetricsAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
LibreChat versions prior to 0.8.9
Description
An authenticated user with people-picker permission can cause a denial of service by submitting a catastrophic-backtracking pattern. This occurs because the endpoint "/api/permissions/search-principals" passes the
q parameter to JavaScript RegExp construction and MongoDB regex queries within the findGroupsByNamePattern() and searchPrincipals() functions in packages/data-schemas/src/methods/userGroup.ts without escaping metacharacters. Catastrophic backtracking is a condition where a complex regular expression takes an exponential amount of time to process, which in this case blocks the Node.js event loop and makes the service unresponsive to other users. Additionally, submitting invalid patterns can result in server errors.Recommendations
Update to version 0.8.9.
Found an issue in the description? Have something to add? Feel free to write us 👾