Skip to main content

LibreChat CVE-2026-137656

| EUVDEUVD-2026-136867 LOW
Race Condition (CWE-362)
2026-11-26 disclosure@vulncheck.com
2.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with valid user account
  2. Delivery
    Deplete balance and wait for refill interval
  3. Exploit
    Fire K concurrent chat requests through stale window
  4. Execution
    Each passes unlocked lastRefill eligibility check
  5. Impact
    Receive K × refillAmount credits, bypass credit limits

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a non-default deployment where auto-refill is enabled (autoRefillEnabled: true) with a configured refillAmount, the refill interval must have already elapsed so a single eligibility window is open, and the attacker must hold a valid authenticated account (PR:L) with a near-depleted balance. The attacker must also be able to issue multiple truly concurrent chat requests that overlap within that one window before any of them updates lastRefill. Limiting factors: it only works while auto-refill is configured, the attacker only inflates their own balance (no cross-tenant or unauthenticated access), the timing race (AT:P / AC:H) must be won, and impact is meaningful only where token credits translate to real monetary cost.

Impact

All severity signals converge on low priority. The input CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N) scores only 2.3, and the vuln.today decision label is 'monitor' - not act_now or emergency. The sole impact is a low integrity effect (VI:L): an authenticated user inflates their own token-credit balance and bypasses configured credit limits; there is no confidentiality (VC:N) or availability (VA:N) impact and no scope change to other systems. The attack is network-reachable but requires a valid authenticated account (PR:L) and winning a timing race (AT:P / AC:H), so it is not trivially automatable at scale. It is not in CISA KEV (no active-exploitation signal present in the input), and no EPSS score was supplied, so widespread exploitation probability cannot be quantified from this data. A detailed PoC with concurrent-request curl commands is published in the GHSA advisory, so working exploitation is plausible, but a PoC is not evidence of in-the-wild use. Net: this is a genuine but low-severity abuse-of-feature issue whose real-world importance scales only with how directly credits map to money in a given deployment - consistent with the maintainer's 'medium' assessment and the 'monitor' decision rather than an urgent patch emergency.

Exploit ScenarioDerived

An authenticated LibreChat user whose balance is near zero waits until the auto-refill interval has elapsed, then fires K simultaneous chat requests that each read the same stale lastRefill value and each pass the eligibility gate. Because the balance compare-and-swap guards only tokenCredits and not lastRefill, every request credits refillAmount, yielding K × refillAmount from a single refill window. A public PoC reference exists in the GHSA advisory demonstrating this with 10 concurrent requests; it is not verified as working end-to-end exploit code, and the maintainer audit explicitly did not rerun a full application exploit.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

LibreChat releases 0.7.8 through 0.8.8-rc2 contain a race condition in the auto-refill eligibility check that lets an authenticated user multiply their own credit grant by firing concurrent chat requests inside a single elapsed refill window. The balance compare-and-swap fences on tokenCredits only, so every concurrent request reads the same stale lastRefill, passes the gate, and adds refillAmount again, producing K x refillAmount credits from one window. Exploitation requires a non-default deployment with autoRefillEnabled and a configured refillAmount, a near-depleted attacker balance, and a won timing race (AC:H / AT:P), so impact is confined to self-inflation of credits that only matters where credits map to real money; a public PoC reference exists in the GitHub advisory, but the maintainers note it is a reporter demonstration on tested builds rather than an independently re-verified end-to-end exploit. No CISA KEV entry or other active-exploitation signal was provided, and the vuln.today decision label is monitor.

RemediationAI

Vendor-released patch: upgrade to LibreChat v0.8.9 (https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9), which contains fix commits 696bcb6c1e29b537e7aa27ad35ea4cddd43b176c and 0fea0240d65225f4837122d12f6d364d6964b10f; both commits are ancestors of the v0.8.9 tag per the GHSA-32pj-j526-963j advisory, which also tracks PRs #15879 and #16781. Upgrading is the complete remediation and replaces the non-atomic refill check with an atomic fence on lastRefill, balance, reservation and policy values. Because the race only exists when auto-refill is enabled, deployments that cannot immediately move to v0.8.9 can eliminate exposure by setting autoRefillEnabled to false and granting credits manually; the trade-off is loss of automatic top-ups for all users on that instance. Verify that any container image or fork actually derives from the v0.8.9 source, since the advisory explicitly does not certify third-party or stale images, and treat unexpected balance inflation in environments where auto-refill remains enabled as a signal to prioritize the upgrade.

Affected VersionsENISA

LibreChat 0.7.8 <0.8.9

Affected Packages

euvd librechat fix: 0.8.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LibreChat is a Node.js/TypeScript chat application backed by MongoDB through Mongoose data-schema methods. The middleware at packages/api/src/middleware/checkBalance.ts reads refill eligibility, and packages/data-schemas/src/methods/transaction.ts applies the credit via createAutoRefillTransaction, which calls updateBalance with a compare-and-swap filter keyed on { user, tokenCredits: currentCredits } and a 10-attempt retry loop. The root cause is CWE-362 (concurrent execution using a shared resource with improper synchronization): lastRefill is written as a set-value in the update payload but is never part of the CAS filter, so two or more concurrent requests that both observe an expired interval are not serialized on the refill marker. The advisory also classifies the behavior as CWE-841 (improper enforcement of a behavioral workflow), since the intended one-refill-per-interval policy is not enforced under concurrency. The maintainer fix replaces this with an atomic fence on lastRefill, balance, reservation and policy values before the credit is applied, and introduces a distinct reset refill mode in the balance UI and data-provider types. The trigger requires overlapping requests within one eligibility window; the sources do not describe any other trigger path.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 2.3 LOW
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
vuln.today AI 3.1 LOW

Network-reachable but requires an authenticated account (PR:L) and winning a concurrency race (AC:H); only self-balance integrity is affected (I:L), with no confidentiality or availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 26, 2026 - 21:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
popular open-source self-hosted AI chat app, limited enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy