7.5
HIGH CVSS 3.1
CVE-2026-34070
LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions
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.

INFO

Published Date :

March 31, 2026, 3:15 a.m.

Last Modified :

June 30, 2026, 3:18 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-34070 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Langchain langchain
2 Langchain langchain_core
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Solution
Update LangChain to version 1.2.22 or later to fix path traversal vulnerabilities.
  • Update LangChain to version 1.2.22 or later.
  • Validate file paths in prompt configurations.
  • Sanitize user-supplied input for prompt loading.
Public PoC/Exploit Available at Github

CVE-2026-34070 has a 9 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-34070 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

A CLI tool that takes a task description, automatically generates 3 strategically distinct prompts using an LLM, runs all 3 against test cases in parallel, and scores each output on Accuracy, Brevity, and Helpfulness using a calibrated judge agent.

Python

Updated: 5 days, 6 hours ago
0 stars 0 fork 0 watcher
Born at : July 1, 2026, 8:18 a.m. This repo has been linked 3 different CVEs too.

None

Python Faust HTML

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : May 26, 2026, 4:20 p.m. This repo has been linked 2 different CVEs too.

DeepSeek-native agent framework with production-grade reliability

Python

Updated: 1 month, 2 weeks ago
1 stars 0 fork 0 watcher
Born at : May 13, 2026, 2:29 p.m. This repo has been linked 2 different CVEs too.

Scan AI agents for security and policy risks with 180 checks for safer deployments

agent-skills agile ai-safety apple bypass-mode claude-code developer-tools github-copilot ios open-source safety software-architecture swift tool-poisoning tvos

Dockerfile Python Shell TypeScript

Updated: 4 weeks ago
0 stars 0 fork 0 watcher
Born at : April 29, 2026, 11:15 a.m. This repo has been linked 5 different CVEs too.

None

Dockerfile Python Shell TypeScript

Updated: 2 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : April 19, 2026, 11:50 a.m. This repo has been linked 5 different CVEs too.

None

Updated: 1 month, 3 weeks ago
1 stars 0 fork 0 watcher
Born at : April 15, 2026, 2:27 p.m. This repo has been linked 4 different CVEs too.

A curated timeline of real AI agent security incidents, breaches, and vulnerabilities (2024-2026). Every entry sourced and dated.

ai-agent-security ai-agents ai-security awesome-list cybersecurity llm-security mcp-security prompt-injection supply-chain-security adversarial-attacks agent-security agentic-ai ai-attacks ai-safety cve incident-response owasp red-team security-research vulnerability

Updated: 4 days, 8 hours ago
29 stars 3 fork 3 watcher
Born at : April 7, 2026, 2:19 p.m. This repo has been linked 85 different CVEs too.

Security scanner for MCP-connected AI agent pipelines — 206 rules, 66 detectors, OWASP Agentic Top 10 + MCP Top 10, EU AI Act / SOC 2 / ISO 27001 / HIPAA compliance mapping. v0.3.24.

ai-agent ai-security claude-code github-action mcp mcp-security owasp sarif scanner security supply-chain-security tool-poisoning ai-agent-security ai-safety security-scanner static-analysis

Python Dockerfile Shell TypeScript HTML

Updated: 1 month ago
6 stars 0 fork 0 watcher
Born at : April 5, 2026, 3:12 p.m. This repo has been linked 13 different CVEs too.

None

Updated: 4 weeks ago
2 stars 0 fork 0 watcher
Born at : Dec. 3, 2025, 6:16 p.m. This repo has been linked 19 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-34070 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-34070 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c

    Jun. 30, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:/a:redhat:ansible_automation_platform:2.5::el8'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2.5', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_lightspeed'], 'vendor': 'Red Hat', 'product': 'OpenShift Lightspeed', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:ansible_automation_platform:2'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI (RHOAI)', 'defaultStatus': 'affected'}]
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    Added CWE CWE-22
    Added Reference https://access.redhat.com/errata/RHSA-2026:24766
    Added Reference https://access.redhat.com/security/cve/CVE-2026-34070
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2453287
    Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34070.json
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'langchain-ai', 'product': 'langchain', 'versions': [{'status': 'affected', 'version': '< 1.2.22'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-34070', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-03-31T15:17:33.597003Z'}
  • Reanalysis by [email protected]

    Jun. 01, 2026

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:* versions up to (excluding) 1.2.22 OR *cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:* versions up to (excluding) 1.2.22
  • Initial Analysis by [email protected]

    Apr. 02, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:* versions up to (excluding) 1.2.22
    Added Reference Type GitHub, Inc.: https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22 Types: Release Notes
    Added Reference Type CISA-ADP: https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54 Types: Exploit, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54 Types: Exploit, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Mar. 31, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54
  • New CVE Received by [email protected]

    Mar. 31, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    Added CWE CWE-22
    Added Reference https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c
    Added Reference https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22
    Added Reference https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.