CVE-2026-34371: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in danny-avila LibreChat
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.
AI Analysis
Technical Summary
LibreChat, a ChatGPT clone, prior to version 0.8.4, improperly limits pathname input when persisting code-generated artifacts. Specifically, it concatenates unsanitized filenames from the execute_code sandbox into server-side file paths using fs.writeFileSync(), allowing path traversal sequences (e.g., ../../../../../) to escape the intended directory. This results in an arbitrary file write vulnerability exploitable by any user able to trigger execute_code. The vulnerability is tracked as CWE-22 and has a CVSS 3.1 score of 6.3, indicating medium severity. The vulnerability is fixed in LibreChat version 0.8.4.
Potential Impact
An attacker with the ability to trigger the execute_code feature can write arbitrary files on the server with the permissions of the LibreChat server user. This could lead to modification or creation of files outside the intended directory, potentially enabling further compromise or disruption of the application environment. There is no indication of confidentiality or availability impact, but integrity is impacted.
Mitigation Recommendations
This vulnerability is fixed in LibreChat version 0.8.4. Users should upgrade to version 0.8.4 or later to remediate this issue. No official patch or temporary fix is indicated beyond upgrading. Until upgraded, avoid exposing execute_code functionality to untrusted users or implement additional input sanitization controls.
CVE-2026-34371: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in danny-avila LibreChat
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LibreChat, a ChatGPT clone, prior to version 0.8.4, improperly limits pathname input when persisting code-generated artifacts. Specifically, it concatenates unsanitized filenames from the execute_code sandbox into server-side file paths using fs.writeFileSync(), allowing path traversal sequences (e.g., ../../../../../) to escape the intended directory. This results in an arbitrary file write vulnerability exploitable by any user able to trigger execute_code. The vulnerability is tracked as CWE-22 and has a CVSS 3.1 score of 6.3, indicating medium severity. The vulnerability is fixed in LibreChat version 0.8.4.
Potential Impact
An attacker with the ability to trigger the execute_code feature can write arbitrary files on the server with the permissions of the LibreChat server user. This could lead to modification or creation of files outside the intended directory, potentially enabling further compromise or disruption of the application environment. There is no indication of confidentiality or availability impact, but integrity is impacted.
Mitigation Recommendations
This vulnerability is fixed in LibreChat version 0.8.4. Users should upgrade to version 0.8.4 or later to remediate this issue. No official patch or temporary fix is indicated beyond upgrading. Until upgraded, avoid exposing execute_code functionality to untrusted users or implement additional input sanitization controls.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-27T13:43:14.369Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d5779eaaed68159a6ad77d
Added to database: 4/7/2026, 9:31:10 PM
Last enriched: 4/7/2026, 9:46:37 PM
Last updated: 4/8/2026, 2:11:07 AM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.