Race condition in LibreChat - #VU166571
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote user to inflate their token credit balance through repeated credits within a single refill window.
The vulnerability exists due to a race condition in LibreChat's automatic refill processing when auto-refill is enabled and the refill interval has elapsed, because the balance compare-and-swap checks tokenCredits but not lastRefill. A remote user can submit concurrent chat requests that pass the same stale eligibility check and repeatedly add refillAmount through balance-update retries to obtain excess credits.