Read the docs
TI-2026-26657 Aliases CVE-2026-34371

LibreChat Affected by Arbitrary File Write via `execute_code` Artifact Filename Traversal

Priority MEDIUM 61CWE-22Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

LibreChat is a ChatGPT clone with additional features. Prior to 0.8.4, LibreChat trusts the name field returned by the execute_code sandbox when persisting code-generated artifacts. On deployments using the default local file strategy, a malicious artifact filename containing traversal sequences (for example, ../../../../../app/client/dist/poc.txt) is concatenated into the server-side destination path and written with fs.writeFileSync() without sanitization. This gives any user who can trigger execute_code an arbitrary file write primitive as the LibreChat server user. This vulnerability is fixed in 0.8.4.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00269 19th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed LibreChat (danny-avila): 0.8.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
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
danny-avilaLibreChatbefore 0.8.40.8.4Patch availableCNA
  • LibreChat Vendordanny-avila Affected before 0.8.4 Fixed in 0.8.4 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*before 0.8.4Vulnerabledanny-avila
  • cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:* Versions before 0.8.4 Vulnerable ·danny-avila

Remediation

  • Fix · CNA LibreChat (danny-avila) Fixed in 0.8.4

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-34371

References

  • TI-2026-25134 LibreChat Exfiltrates Server Secrets via MCP Server URL Injection CVSS 3.1CRITICAL 9.6
  • TI-2026-17862 LibreChat MCP Stdio Remote Command Execution CVSS 3.1CRITICAL 9.9
  • TI-2026-38976 LibreChat: Missing Resource Parameter Validation in MCP OAuth Flow CVSS 3.1CRITICAL 9.3
  • TI-2024-27763 LibreChat through 0.7.4-rc1 has incorrect access control for message updates. CVSS 3.1CRITICAL 9.8
  • TI-2024-10347 Path Traversal in danny-avila/librechat CVSS 3.0HIGH 8.8
  • TI-2026-25682 In LibreChat 0.8.1-rc2, a logged-in user obtains a JWT for both the LibreChat API and the RAG API. CVSS 3.1CRITICAL 9.0
See all 50 →

Sources

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