CVE-2026-34070

LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions

HIGH
7.5
CVSS Score
Published: March 31, 2026 at 02:01 AM UTC
Updated: August 25, 2026 at 01:40 PM UTC
4 products affected across 3 vendorsLangchain CoreAnsible Automation PlatformOpenShift Lightspeed

Using langchain by langchain-ai?

Get instant alerts when new vulnerabilities affect langchain - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.2.22
Affected range stops below 1.2.22, so it looks safe — our inference, not a vendor statement
v < 1.2.22
Affected range stops below 1.2.22, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 1780082949 (unaffected)
Vendor states this is fixed in 1787229385 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (9)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:24766
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/security/cve/CVE-2026-34070
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://bugzilla.redhat.com/show_bug.cgi?id=2453287
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:37275

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card