CVE-2026-34070: LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions
Vulnerability summary
CVE-2026-34070 is a high (CVSS 7.5) vulnerability in langchain-ai langchain. EPSS estimates a 1.49% chance of exploitation in the next 30 days, higher than 74.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?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.49%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
Increase +0.05 pp
From 1.44% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundLangchain
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
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