Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-34070— LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions

Quick assessment

Affected
langchain-ai langchain
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LangChain是LangChain开源的一个用于开发由大型语言模型 (LLM) 提供支持的应用程序的框架。 LangChain 1.2.22之前版本存在安全漏洞,该漏洞源于langchain_core.prompts.loading中的多个函数从反序列化配置字典中嵌入的路径读取文件时未验证目录遍历或绝对路径注入,可能导致读取主机文件系统上的任意文件。

CVSS 7.5 · High EPSS 1.21% · P67

Affected Version Matrix 1

VendorProduct Version RangeStatus
langchain-ai langchain < 1.2.22 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-34070

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
LangChain 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LangChain是LangChain开源的一个用于开发由大型语言模型 (LLM) 提供支持的应用程序的框架。 LangChain 1.2.22之前版本存在安全漏洞,该漏洞源于langchain_core.prompts.loading中的多个函数从反序列化配置字典中嵌入的路径读取文件时未验证目录遍历或绝对路径注入,可能导致读取主机文件系统上的任意文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
langchain-ai langchain < 1.2.22 -

II. Public POCs for CVE-2026-34070

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8423 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-34070

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-34070 (1)

Vendor Advisories for CVE-2026-34070 (1)

Vendor Pages for CVE-2026-34070 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-34070

No comments yet


Leave a comment