LangChain file-search middleware and loaders allow path traversal (CVE-2026-55443)
Summary
Per the vendor advisory, several LangChain components that resolve filesystem paths or search patterns do not consistently keep the resolved path inside the intended root, so files outside it can be disclosed when inputs come from an untrusted source. The advisory scores it CVSS 5.1 with a Local attack vector and High attack complexity, and says it has no evidence of in-the-wild triggering. Patched releases are langchain 1.3.9 and langchain-anthropic 1.4.6.
Severity
Timeline
Repository advisory page, which labels the issue Moderate, shows GHSA-gr75-jv2w-4656 as published
Published date listed on the GitHub advisory entry for GHSA-gr75-jv2w-4656 (per the vendor advisory)
How it happened
Per the vendor advisory, the file-search agent middleware 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. Configuration loaders resolve path fields without confining them to a trusted base or rejecting symlink targets. Path-prefix authorization checks compare by string prefix without a path-segment boundary, so a sibling path sharing the prefix is accepted.
How to check your app
- langchain <= 1.3.8: Check whether the installed langchain package is at 1.3.8 or earlier.
- langchain-anthropic <= 1.4.5: Check whether the installed langchain-anthropic package is at 1.4.5 or earlier.
- all affected versions: Check whether an agent uses file-search middleware over a directory and accepts prompts or retrieved content influenced by untrusted sources.
- all affected versions: Check whether prompt or chain/agent configuration is loaded from untrusted or shared sources, or whether tool file access relies on path-prefix restrictions.
Sources
Corrections and updates
Cite this entry
- Title
- LangChain file-search middleware and loaders allow path traversal (CVE-2026-55443)
- Added
- Nov 16, 2026
- URL
- https://vibeincidents.com/incidents/langchain-cve-2026-55443/
- Suggested citation
VibeIncidents. "LangChain file-search middleware and loaders allow path traversal (CVE-2026-55443)." Nov 16, 2026. https://vibeincidents.com/incidents/langchain-cve-2026-55443/