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.
References
| Link | Resource |
|---|---|
| https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c | Patch |
| https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22 | Release Notes |
| https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54 | Exploit Vendor Advisory |
| https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54 | Exploit Vendor Advisory |
Configurations
History
02 Apr 2026, 17:04
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c - Patch | |
| References | () https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22 - Release Notes | |
| References | () https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54 - Exploit, Vendor Advisory | |
| CPE | cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:* | |
| First Time |
Langchain langchain
Langchain |
31 Mar 2026, 18:16
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
|
| References | () https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54 - |
31 Mar 2026, 03:15
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-03-31 03:15
Updated : 2026-04-02 17:04
NVD link : CVE-2026-34070
Mitre link : CVE-2026-34070
CVE.ORG link : CVE-2026-34070
JSON object : View
Products Affected
langchain
- langchain
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
