Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability carries moderate real-world risk despite a medium CVSS score of 6.3. The attack vector is network-based and requires low privileges (authenticated user, PR:L) with high complexity (AC:H), limiting the attack surface to authenticated sessions. The CVSS impact shows integrity compromise only (I:H, no confidentiality or availability impact), suggesting file overwrite rather than system compromise. However, the lack of complexity for exploitation (once authenticated) and the potential to inject malicious files into the client distribution directory (dist/poc.txt suggests client-side payload injection) elevates practical risk. The confirmed patch in version 0.8.4 and the specific mention of this being fixed indicate vendor responsiveness. Organizations running LibreChat versions below 0.8.4 with execute_code enabled and default file storage should prioritize patching. The vulnerability is not confirmed actively exploited (no CISA KEV status provided), and no public proof-of-concept code is referenced, reducing immediate threat likelihood but not eliminating the need for prompt remediation. |
| Exploit ScenarioDerived | An authenticated LibreChat user with access to the code execution feature crafts a prompt that triggers the execute_code sandbox, but includes a malicious artifact name such as '../../../../../app/client/dist/malicious.js' in the response. The application concatenates this unsanitized filename into the file write path without validation, allowing the attacker to write a JavaScript payload into the client distribution directory. When other users or administrators load the LibreChat frontend, the injected script executes in their browser context, potentially stealing session tokens, credentials, or performing actions on behalf of legitimate users. No public exploit code or active exploitation in the wild has been documented at the time of this analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 07, 2026
Arbitrary file write in LibreChat prior to 0.8.4 allows authenticated users to overwrite arbitrary server files via path traversal in code artifact filenames. The vulnerability affects LibreChat deployments using the default local file storage strategy, where the execute_code sandbox returns a user-controllable filename that is concatenated directly into the file write path without sanitization. An authenticated attacker can craft malicious artifact names containing traversal sequences (e.g., ../../../../../app/client/dist/poc.txt) to write files outside the intended directory, potentially compromising application integrity or enabling remote code execution through client-side file injection.
RemediationAI
The primary remediation is to upgrade LibreChat to version 0.8.4 or later, which includes the path traversal fix. For users unable to immediately upgrade, consider disabling the execute_code feature if not essential to operations, or implementing filesystem permissions restrictions to limit the damage from potential file writes (e.g., restricting server process permissions to specific directories). Additionally, audit recent LibreChat logs for any suspicious artifact filenames containing ../ sequences to detect potential exploitation attempts. The fix is available in the official GitHub repository at https://github.com/danny-avila/LibreChat/security/advisories/GHSA-qrm5-r67f-6692, which documents the security advisory and patched release.
Affected VersionsENISA
Affected Packages
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's execute_code sandbox feature allows users to generate code artifacts stored via a pluggable file strategy system. The vulnerability stems from improper trust of the name field returned by the sandbox process. When using the default local file strategy (fs.writeFileSync), the application concatenates user-influenced filenames directly into the destination path without Path.normalize() or similar canonicalization, failing to filter directory traversal sequences. This is a classic Path Traversal (CWE-22) vulnerability where relative path components (../) are not stripped before filesystem operations. The affected code path is triggered whenever execute_code produces an artifact with a malicious filename, and any authenticated LibreChat user who can invoke code execution features is a potential attacker.
Know when Librechat gets its next vulnerability
- 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
AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f
An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap
LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through
LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v
Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to c
LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex
LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests
In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (
A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),
Unbounded `key` and `value` parameters on the LibreChat 0.7.9 memory API (`POST /api/memories` and `PATCH /api/memories/
An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead
An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat
EUVD-2026-19946
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB