Read the docs

Regular expression denial of service in LibreChat principal search

Priority LOW 30CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-1333.

Summary

LibreChat from 0.8.6-rc1 before 0.8.9 passes the q parameter of GET /api/permissions/search-principals into regular expression construction without escaping metacharacters. An authenticated user with people-picker permission can submit a catastrophic-backtracking pattern (CWE-1333) that blocks the Node.js event loop and makes the service unresponsive to concurrent users. Invalid patterns can also cause server errors.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00548 39th percentileScored 2026-11-30
Fix Fixed LibreChat (LibreChat-AI): 0.8.9

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
LibreChat-AILibreChat0.8.6-rc1 to before 0.8.90.8.9Patch availableCNA
  • LibreChat VendorLibreChat-AI Affected 0.8.6-rc1 to before 0.8.9 Fixed in 0.8.9 Patch available CNA

Remediation

Upgrade LibreChat to version 0.8.9.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA LibreChat (LibreChat-AI) Fixed in 0.8.9

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-54038
  2. 2026-11-24 CISA SSVC decision points changed

References

  • TI-2026-96065 LibreChat: Pre-registration account takeover via attacker-controlled `provider` field and social-login email fallback CVSS 3.1HIGH 8.1
  • TI-2026-96070 Password reset deletes pending email-verification tokens in LibreChat CVSS 3.1MEDIUM 6.5
  • TI-2026-96067 LibreChat 2FA check lacks rate limiting, allowing code guessing CVSS 3.1MEDIUM 6.8
  • TI-2026-96071 User enumeration via email verification endpoint in LibreChat CVSS 3.1MEDIUM 5.3
  • TI-2026-96072 Message injection into other users' conversations in LibreChat CVSS 3.1MEDIUM 6.5
  • TI-2026-96063 LibreChat MCP OAuth requests follow redirects to internal addresses CVSS 3.1MEDIUM 6.3
See all 11 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences