CVE-2026-34070CWE-22path-traversal

CVE-2026-34070

High · published March 31, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
68.3
In the wild
Unconfirmed
What it is

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 record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.01213 · 68.3th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-03-31T07:15Z
Affected products (1)
ProductVersionsFixed in
langchain/langchain_core< 1.2.221.2.22
References (10)
EPSS history
Timeline
  • 31 MAR 02:01Z
    LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions
    cvelistv5