StraitOfVuln
Latest / CVE-2026-34070

CVE-2026-34070

HighCVSS 7.5 (v3.1)Modified
CVE.org ↗NVD ↗Vendor advisory ↗

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.

Details

CVE ID
CVE-2026-34070
Published / updated
31 Mar 2026, 03:15 UTC · last modified 25 Aug 2026, 13:18 UTC
Severity
HIGH
CVSS score
7.5 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N · Attack vector: Network
Affected vendor
Affected products
Langchain Core
Affected versions
Langchain Core: < 1.2.22
Fixed versions
langchain core 1.2.22
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
1.49% probability of exploitation in the next 30 days · 75% percentile (02 Dec 2026)
Weakness
Remediation
Upgrade to a fixed release (langchain core 1.2.22) per the vendor advisory.
Source (CNA)
security-advisories@github.com