{"id":"CVE-2026-137656","summary":"LibreChat 0.7.8 before 0.8.9 Race Condition in Balance Auto-Refill","details":"LibreChat 0.7.8 before 0.8.9 contains a race condition vulnerability in checkBalance that allows authenticated users to obtain multiple auto-refill credits by sending concurrent requests. Attackers can send simultaneous chat requests that each pass the unlocked lastRefill check, receiving repeated refillAmount credits and bypassing configured token credit limits.","aliases":["GHSA-32pj-j526-963j"],"modified":"2026-11-26T23:00:57.236090498Z","published":"2026-11-26T20:02:28.645Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-362"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137656.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137656.json"},{"type":"PACKAGE","url":"https://github.com/LibreChat-AI/LibreChat"},{"type":"ARTICLE","url":"https://github.com/LibreChat-AI/LibreChat/blob/v0.8.8-rc2/packages/api/src/middleware/checkBalance.ts#L113-L140"},{"type":"ARTICLE","url":"https://github.com/LibreChat-AI/LibreChat/blob/v0.8.8-rc2/packages/data-schemas/src/methods/transaction.ts#L242-L246"},{"type":"FIX","url":"https://github.com/LibreChat-AI/LibreChat/commit/0fea0240d65225f4837122d12f6d364d6964b10f"},{"type":"FIX","url":"https://github.com/LibreChat-AI/LibreChat/commit/696bcb6c1e29b537e7aa27ad35ea4cddd43b176c"},{"type":"ADVISORY","url":"https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9"},{"type":"ADVISORY","url":"https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-32pj-j526-963j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137656"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/librechat-0.7.8-before-0.8.9-race-condition-in-balance-auto-refill"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/librechat-ai/librechat","events":[{"introduced":"f7777a2723e8e51f3ff464d4e672db46905964a5"},{"fixed":"d4e85d2205c78413ee27d631d7e3b7313556f21d"},{"fixed":"696bcb6c1e29b537e7aa27ad35ea4cddd43b176c"},{"fixed":"0fea0240d65225f4837122d12f6d364d6964b10f"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0.7.8"},{"fixed":"0.8.9"}]},{"range":[{"fixed":"696bcb6c1e29b537e7aa27ad35ea4cddd43b176c"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"0fea0240d65225f4837122d12f6d364d6964b10f"}]},{"range":[{"fixed":"d4e85d2205c78413ee27d631d7e3b7313556f21d"}],"source":"REFERENCES_TAG","original_tag":"v0.8.9"}]}}],"versions":["chart-2.0.10","v0.8.8-rc2","chart-2.0.9","v0.8.8-rc1","chart-2.0.8","v0.8.7","chart-2.0.7","v0.8.7-rc1","chart-2.0.6","v0.8.6","chart-2.0.5","chart-2.0.4","v0.8.6-rc1","chart-2.0.3","v0.8.5","v0.8.5-rc1","v0.8.4","chart-2.0.2","v0.8.4-rc1","chart-2.0.1","v0.8.3","chart-2.0.0","v0.8.3-rc2","chart-1.9.9","v0.8.3-rc1","chart-1.9.8","v0.8.2","chart-1.9.7","v0.8.2-rc3","chart-1.9.6","v0.8.2-rc2","chart-1.9.5","v0.8.2-rc1","v0.8.1","chart-1.9.4","v0.8.1-rc2","chart-1.9.3","v0.8.1-rc1","chart-1.9.2","v0.8.0","chart-1.9.1","v0.8.0-rc4","chart-1.9.0","v0.8.0-rc3","v0.8.0-rc2","v0.8.0-rc1","v0.7.9","librechat-1.8.9","v0.7.9-rc1","v0.7.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-137656.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}]}