#VU125664 Path traversal in LangChain - CVE-2026-34070

 

#VU125664 Path traversal in LangChain - CVE-2026-34070

Published: April 9, 2026


Vulnerability identifier: #VU125664
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-34070
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
LangChain
Software vendor:
LangChain

Description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to path traversal in legacy load_prompt functions in langchain_core.prompts.loading when processing user-influenced deserialized prompt configuration dictionaries. A remote attacker can supply a crafted configuration with traversal sequences or absolute paths to disclose sensitive information.

The issue is constrained by file-extension checks that limit readable files to .txt, .json, .yaml, and .yml.


Remediation

Install security update from vendor's website.

External links