CVE-2026-55443 Details
Description
LangChain is a framework for building agents and LLM-powered applications. Prior to 1.3.9, several LangChain components that resolve filesystem paths or expand search patterns do not consistently confine the resolved path to the intended root directory. Affected behaviors include: a file-search agent middleware that validates a starting directory but not the search pattern or the resolved target of matched files, so glob patterns and symlinks can reach files outside the configured root; prompt- and chain/agent-configuration loaders that accept path fields and resolve them without confining the result to a trusted base or rejecting symlink targets; and path-prefix authorization checks that compare by string prefix without a path-segment boundary, so a sibling path sharing the prefix is accepted. When these components receive path values, search patterns, or workspace contents influenced by an untrusted source — including an LLM acting on untrusted input — the result can be disclosure of files outside the intended boundary. This vulnerability is fixed in 1.3.9.
A vulnerability in LangChain components that handle filesystem paths or search patterns can lead to unauthorized access to files outside the intended directory. This issue affects LangChain versions through 1.3.8, as well as the langchain-anthropic package in versions through 1.4.5. The vulnerability arises because certain components do not properly confine resolved paths to a trusted root, allowing glob patterns and symlinks to access files beyond the designated boundaries. This can result in the unintentional disclosure of file contents, particularly when the components interact with untrusted inputs, such as those influenced by a language model.
Users can update to LangChain version 1.3.9 or langchain-anthropic version 1.4.6, both of which include the necessary fixes. After updating, it is recommended to validate path and identifier inputs where untrusted data may be introduced, and to confine filesystem-backed agent tools to a dedicated directory, preferably running them in a sandboxed or containerized environment.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langchain langchain | < 1.3.9 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 22, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | New CVE Received | [email protected] |