CVE-2026-55443: langchain-ai langchain Path Traversal
Vulnerability summary
CVE-2026-55443 is a medium (CVSS 5.5) Path Traversal vulnerability in langchain-ai langchain. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 10.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 22-06-2026PublishedVulnerability first disclosed.
- 22-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.1MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · PypiEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated5.1MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
11%
Versus all other CVEs
30-day change
0.00 pp
From 0.21% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-59Improper Link Resolution Before File Access ('Link Following')The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Affected systems
Langchain-ai2 products
- langchain< 1.3.9
- langchain-anthropic< 1.4.6
PyPI2 products
- langchain< 1.3.9
- langchain-anthropic< 1.4.6
Chainguard1 product
- open-webui< 0.9.6-r5
Langchain1 product
- langchain< 1.3.9
Opensuse1 product
- python-langchain-anthropic&distro=openSUSE Tumbleweed< 1.7.5-1.1
Wolfi1 product
- open-webui< 0.9.6-r5
6 vendors · 8 products
References
8 links- github.com/langchain-ai/langchain/security/advisories/GHSA-gr75-jv2w-4656X Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/langchain-ai/langchain/commit/dcaf7795a3e6590af55c3ff7bda6add6355e9ea6X Refsource MISCWEBFIXPatch