CVE-2026-34371

MEDIUM CVSS 3.1: 6.3 EPSS 0.27%
Updated Jul 24, 2026
Librechat
Parameter Value
CVSS 6.3 (MEDIUM)
Affected Versions before 0.8.4
Fixed In 0.8.4
Type CWE-22 (Path Traversal)
Vendor Librechat
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Librechat Librechat
cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*
— 0.8.4