Loading advisory.
Loading advisory.
langchain vulnerable to path traversal
langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality.
Published 2024-04-16 00:00 UTC · Modified 2026-07-07 17:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| langchain | PyPI | < 0.0.353 versions 0.0.1, 0.0.10, 0.0.100, 0.0.101, 0.0.101rc0, 0.0.102, 0.0.102rc0, 0.0.103, 0.0.104, 0.0.105, 0.0.106, 0.0.107, 0.0.108, 0.0.109, 0.0.11, 0.0.110, 0.0.111, 0.0.112, 0.0.113, 0.0.114 and 343 more | 0.0.353 | pip install --upgrade 'langchain>=0.0.353' |
langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this vulnerability to read or write files anywhere on the filesystem, potentially leading to information disclosure or remote code execution. The issue lies in the handling of file paths in the mset and mget methods, where user-supplied input is not adequately sanitized, allowing directory traversal sequences to reach unintended directories.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.019 on 2026-11-24 to 0.025 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.019 | first score | v2026.06.15 |
| 2026-11-26 | 0.025 | 0.019 | v2026.06.15 |