{"answers":{"affected":"6 open source packages ship an affected version, including langchain and langchain-anthropic. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-55443 in the wild and no public exploit code.","fix":"Upgrade langchain to 1.3.9 or later.","what":"CVE-2026-55443 is a medium-severity path traversal vulnerability in langchain-ai langchain, published on 22 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-55443 and fix it if it is affected.\n\nWhat it is: CVE-2026-55443 is a medium-severity path traversal vulnerability in langchain-ai langchain, published on 22 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-55443 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- langchain (PyPI): affected all versions; fixed in 1.3.9\n- langchain (PyPI): affected all versions; fixed in 1.3.9\n- langchain (PyPI): affected all versions; fixed in 1.3.9\n- langchain-anthropic (PyPI): affected all versions; fixed in 1.4.6\n- langchain-anthropic (PyPI): affected all versions; fixed in 1.4.6\n- langchain-anthropic (PyPI): affected all versions; fixed in 1.4.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55443/ (Markdown: https://insights.sbomify.com/CVE-2026-55443/index.md)","id":"CVE-2026-55443","markdown":"https://insights.sbomify.com/CVE-2026-55443/index.md","name":"CVE-2026-55443","record":{"aliases":["CLEANSTART-2026-PK67408","ECHO-7afa-b4aa-5d4a","GHSA-gr75-jv2w-4656","PYSEC-2026-2192","PYSEC-2026-2556","ROOT-APP-PYPI-CVE-2026-55443","ROOT-APP-PYPI-GHSA-gr75-jv2w-4656","openSUSE-SU-2026:11946-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"LangChain framework","requires_auth":"none","summary":"Attackers can read files outside the intended directory via path traversal in LangChain file-search middleware and loaders when processing untrusted input.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"langchain","vendor":"langchain"}],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders","id":"CVE-2026-55443","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":7,"n_references":2,"next":{"headline":"Goobi viewer: Solr query injection via the legacy RSS servlet q and filterQuery parameters","id":"CVE-2026-55444"},"packages":[{"ecosystem":"PyPI","fixed":["1.3.9"],"introduced":["0"],"last_affected":[],"package":"langchain","purl":null,"source":"GHSA-gr75-jv2w-4656"},{"ecosystem":"PyPI","fixed":["1.3.9"],"introduced":["0"],"last_affected":[],"package":"langchain","purl":"pkg:pypi/langchain","source":"GHSA-gr75-jv2w-4656"},{"ecosystem":"PyPI","fixed":["1.3.9"],"introduced":["0"],"last_affected":[],"package":"langchain","purl":"pkg:pypi/langchain","source":"PYSEC-2026-2192"},{"ecosystem":"PyPI","fixed":["1.4.6"],"introduced":["0"],"last_affected":[],"package":"langchain-anthropic","purl":null,"source":"GHSA-gr75-jv2w-4656"},{"ecosystem":"PyPI","fixed":["1.4.6"],"introduced":["0"],"last_affected":[],"package":"langchain-anthropic","purl":"pkg:pypi/langchain-anthropic","source":"GHSA-gr75-jv2w-4656"},{"ecosystem":"PyPI","fixed":["1.4.6"],"introduced":["0"],"last_affected":[],"package":"langchain-anthropic","purl":"pkg:pypi/langchain-anthropic","source":"PYSEC-2026-2556"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.7.5-1.1"],"introduced":["0"],"last_affected":[],"package":"python-langchain-anthropic","purl":"pkg:rpm/opensuse/python-langchain-anthropic\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11946-1"}],"prev":{"headline":"Goobi viewer: cleanUpQuery double-brace bypass allows arbitrary Solr local-param injection","id":"CVE-2026-55442"},"products":["langchain","langchain-anthropic"],"published":"2026-06-22","related":[{"cvss_score":9.8,"headline":"Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library","id":"CVE-2023-39631","kev_date_added":null,"published":"2023-09-01"},{"cvss_score":9.8,"headline":"langchain vulnerable to arbitrary code execution","id":"CVE-2023-36281","kev_date_added":null,"published":"2023-08-22"},{"cvss_score":9.8,"headline":"LangChain vulnerable to arbitrary code execution","id":"CVE-2023-38860","kev_date_added":null,"published":"2023-08-15"},{"cvss_score":9.8,"headline":"LangChain vulnerable to arbitrary code execution","id":"CVE-2023-38896","kev_date_added":null,"published":"2023-08-15"},{"cvss_score":9.8,"headline":"LangChain vulnerable to arbitrary code execution","id":"CVE-2023-39659","kev_date_added":null,"published":"2023-08-15"},{"cvss_score":9.8,"headline":"langchain Code Injection vulnerability","id":"CVE-2023-36095","kev_date_added":null,"published":"2023-08-05"},{"cvss_score":9.8,"headline":"langchain vulnerable to arbitrary code execution","id":"CVE-2023-36188","kev_date_added":null,"published":"2023-07-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-22","vendors":["langchain-ai"]},"summary":"Attackers can read files outside the intended directory via path traversal in LangChain file-search middleware and loaders when processing untrusted input.","url":"https://insights.sbomify.com/CVE-2026-55443/"}