CVE-2026-34070: langchain-ai langchain Path Traversal
Vulnerability summary
CVE-2026-34070 is a high (CVSS 7.5) Path Traversal vulnerability in langchain-ai langchain. EPSS estimates a 1.21% chance of exploitation in the next 30 days, higher than 68% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 31-03-2026PublishedVulnerability first disclosed.
- 25-08-2026Last modifiedVulnerability information updated.
Description
LangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22, multiple functions in langchain_core.prompts.loading read files from paths embedded in deserialized config dicts without validating against directory traversal or absolute path injection. When an application passes user-influenced prompt configurations to load_prompt() or load_prompt_from_config(), an attacker can read arbitrary files on the host filesystem, constrained only by file-extension checks (.txt for templates, .json/.yaml for examples). This issue has been patched in version 1.2.22.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.21%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
-0.17 pp
From 1.38% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundLangchain
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard5 products
- py3-langchainAll versions (No fix recorded)
- py3.10-langchainAll versions (No fix recorded)
- py3.11-langchainAll versions (No fix recorded)
- py3.12-langchainAll versions (No fix recorded)
- py3.13-langchainAll versions (No fix recorded)
Langchain1 product
- langchain_core< 1.2.22
Langchain-ai1 product
- langchain< 1.2.22
PyPI1 product
- langchain-core< 1.2.22
4 vendors · 8 products
References
12 links- github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54X Refsource CONFIRMWEBEVIDENCEAdvisoryExploitVendor Advisory
- github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47cX Refsource MISCWEBFIXPatch
- github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22X Refsource MISCWEBAdvisoryRelease Notes