CVE-2026-34371: LibreChat Affected by Arbitrary File Write via `execute_code` Artifact Filename Traversal

Published Apr 7, 2026
·
Updated

LibreChat is a ChatGPT clone with additional features. Prior to 0.8.4, LibreChat trusts the name field returned by the executecode 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 executecode an arbitrary file write primitive as the LibreChat server user. This vulnerability is fixed in 0.8.4.

Affected Software

2 affected components
librechat librechat<0.8.4
librechat librechat<0.8.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade LibreChat to a version that resolves this vulnerability.

    Fixed in 0.8.4

Event History

Apr 7, 2026
CVE Published
via MITRE·09:08 PM
Data Sourced
via MITRE·09:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-34371?

CVE-2026-34371 is considered to have a high severity due to the potential for arbitrary file write vulnerabilities in LibreChat.

2

How do I fix CVE-2026-34371?

To mitigate CVE-2026-34371, upgrade LibreChat to version 0.8.4 or later where the vulnerability has been addressed.

3

What are the potential impacts of CVE-2026-34371?

The potential impacts of CVE-2026-34371 include unauthorized access to sensitive file systems and possible execution of malicious code.

4

Which versions of LibreChat are affected by CVE-2026-34371?

CVE-2026-34371 affects all versions of LibreChat prior to 0.8.4.

5

How does CVE-2026-34371 allow for arbitrary file write?

CVE-2026-34371 exploits a filename traversal vulnerability in the execute_code function, allowing attackers to manipulate file paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203