CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ⬡ Vulnerabilities & CVEs Mar 31, 2026

CVE-2026-34070 | langchain-ai langchain up to 1.2.21 load_prompt/load_prompt_from_config path traversal (GHSA-qh6h-p6c9-ff54)

VulDB Archived Mar 31, 2026 ✓ Full text saved

A vulnerability classified as critical has been found in langchain-ai langchain up to 1.2.21 . Affected by this issue is the function load_prompt/load_prompt_from_config . The manipulation leads to path traversal. This vulnerability is documented as CVE-2026-34070 . The attack can be initiated remotely. There is not any exploit available. It is recommended to upgrade the affected component.

Full text archived locally
✦ AI Summary · Claude Sonnet


    VDB-354312 · CVE-2026-34070 · GHSA-QH6H-P6C9-FF54 LANGCHAIN-AI LANGCHAIN UP TO 1.2.21 LOAD_PROMPT/LOAD_PROMPT_FROM_CONFIG PATH TRAVERSAL HISTORYDIFFRELATEJSONXMLCTI CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score 6.3 $0-$5k 1.32+ Summaryinfo A vulnerability classified as critical was found in langchain-ai langchain up to 1.2.21. This affects the function load_prompt/load_prompt_from_config. The manipulation results in path traversal. This vulnerability is reported as CVE-2026-34070. The attack can be launched remotely. No exploit exists. Upgrading the affected component is advised. Detailsinfo A vulnerability classified as critical has been found in langchain-ai langchain up to 1.2.21. Affected is the function load_prompt/load_prompt_from_config. The manipulation with an unknown input leads to a path traversal vulnerability. CWE is classifying the issue as CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. This is going to have an impact on confidentiality. CVE summarizes: 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. The advisory is shared for download at github.com. This vulnerability is traded as CVE-2026-34070 since 03/25/2026. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1006. Upgrading to version 1.2.22 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 27add913474e01e33bededf4096151130ba0d47c is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version. Productinfo Type Artificial Intelligence Software Vendor langchain-ai Name langchain Version 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.20 1.2.21 License open-source Website Product: https://github.com/langchain-ai/langchain/ CPE 2.3info 🔒 🔒 🔒 CPE 2.2info 🔒 🔒 🔒 CVSSv4info VulDB Vector: 🔒 VulDB Reliability: 🔍 CVSSv3info VulDB Meta Base Score: 6.4 VulDB Meta Temp Score: 6.3 VulDB Base Score: 5.3 VulDB Temp Score: 5.1 VulDB Vector: 🔒 VulDB Reliability: 🔍 CNA Base Score: 7.5 CNA Vector (GitHub_M): 🔒 CVSSv2info Vector Complexity Authentication Confidentiality Integrity Availability Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock Unlock VulDB Base Score: 🔒 VulDB Temp Score: 🔒 VulDB Reliability: 🔍 Exploitinginfo Class: Path traversal CWE: CWE-22 CAPEC: 🔒 ATT&CK: 🔒 Physical: No Local: No Remote: Yes Availability: 🔒 Status: Not defined Price Prediction: 🔍 Current Price Estimation: 🔒 0-Day Unlock Unlock Unlock Unlock Today Unlock Unlock Unlock Unlock Threat Intelligenceinfo Interest: 🔍 Active Actors: 🔍 Active APT Groups: 🔍 Countermeasuresinfo Recommended: Upgrade Status: 🔍 0-Day Time: 🔒 Upgrade: langchain 1.2.22 Patch: 27add913474e01e33bededf4096151130ba0d47c Timelineinfo 03/25/2026 CVE reserved 03/31/2026 +5 days Advisory disclosed 03/31/2026 +0 days VulDB entry created 03/31/2026 +0 days VulDB entry last update Sourcesinfo Product: github.com Advisory: GHSA-qh6h-p6c9-ff54 Status: Confirmed CVE: CVE-2026-34070 (🔒) GCVE (CVE): GCVE-0-2026-34070 GCVE (VulDB): GCVE-100-354312 Entryinfo Created: 03/31/2026 08:13 Changes: 03/31/2026 08:13 (69) Complete: 🔍 Cache ID: 99:FBC:101 Discussion No comments yet. Languages: en. Please log in to comment. ◂ PreviousOverviewNext ▸
    💬 Team Notes
    Article Info
    Source
    VulDB
    Category
    ⬡ Vulnerabilities & CVEs
    Published
    Mar 31, 2026
    Archived
    Mar 31, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗