Race condition in LibreChat - #VU166571

 

Race condition in LibreChat - #VU166571

Published: November 18, 2026


Vulnerability identifier: #VU166571
CSH Severity: Low
CVSS v4: 6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

LibreChat

Remediation

Install security update from vendor's website.

LibreChat - update to 0.8.9

External References

Related Security Bulletins