{"cve":"CVE-2026-55443","nvd":{"published":"2026-06-22T19:17:21.537","modified":"2026-06-26T20:05:46.400","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5},"cwes":["CWE-22","CWE-59"],"references":["https://github.com/langchain-ai/langchain/commit/dcaf7795a3e6590af55c3ff7bda6add6355e9ea6","https://github.com/langchain-ai/langchain/security/advisories/GHSA-gr75-jv2w-4656"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T22:39:28.638635428+00:00"},"epss":{"cve":"CVE-2026-55443","score":0.0021,"percentile":0.11253,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-gr75-jv2w-4656","url":"https://osv.dev/vulnerability/GHSA-gr75-jv2w-4656","summary":"LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders","modified":"2026-09-10T03:51:08.737829576Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<1.3.9"],"fixed":["1.3.9"]},{"ecosystem":"PyPI","name":"langchain-anthropic","purl":"pkg:pypi/langchain-anthropic","ranges":["<1.4.6"],"fixed":["1.4.6"]}]},{"id":"PYSEC-2026-2192","url":"https://osv.dev/vulnerability/PYSEC-2026-2192","summary":"","modified":"2026-07-13T16:43:09.845932020Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<1.3.9"],"fixed":["1.3.9"]}]},{"id":"PYSEC-2026-2556","url":"https://osv.dev/vulnerability/PYSEC-2026-2556","summary":"LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders","modified":"2026-07-13T16:43:09.845932020Z","packages":[{"ecosystem":"PyPI","name":"langchain-anthropic","purl":"pkg:pypi/langchain-anthropic","ranges":["<1.4.6"],"fixed":["1.4.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}