LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders
CVE-2026-55443 · GHSA-gr75-jv2w-4656 · published 2026-06-16 · updated 2026-07-08
- Severity
- Medium
- CVSS score
- 5.1
- Chance of exploitation (EPSS)
- 0.21%
- Fixed in
- 1.3.9
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
Confidentiality: disclosure of file contents outside the intended root/sandbox. Authorization: path-prefix bypass can grant access to sibling resources beyond the intended subtree.
Upgrade langchain to 1.3.9 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
The affected components will canonicalize candidate paths (resolving symlinks) and verify the resolved real path remains within the configured root before reading or returning it; search patterns will be normalized so they cannot escape the root; configuration loaders will confine resolved path fields and reject symlink escapes unless the caller explicitly opts in to dangerous loading; and path-prefix checks will enforce a path-segment boundary. Path validation will be made operating-system-portable.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| langchain | PyPI | <= 1.3.8 | 1.3.9 |
1 registered MCP server installs an affected version today, by the dependency versions a fresh install resolves.
- io.github.jahanv01/sec-intelligence-mcplangchain@0.3.30
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalLangchain SQL Injection vulnerabilitylangchain
- CriticalLangchain vulnerable to arbitrary code execution via the evaluate function in the numexpr librarylangchain
- Criticallangchain vulnerable to arbitrary code executionlangchain
- CriticalLangChain vulnerable to arbitrary code executionlangchain
- CriticalLangChain vulnerable to arbitrary code executionlangchain
- CriticalLangChain vulnerable to arbitrary code executionlangchain
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.