7.5

CVE-2026-34070: LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions

Modified
AliasesGHSA-qh6h-p6c9-ff54PYSEC-2026-2193CGA-2fpf-7g9m-2qmq
Published 31-03-2026Last modified 25-08-2026

Vulnerability summary

CVE-2026-34070 is a high (CVSS 7.5) vulnerability in langchain-ai langchain. EPSS estimates a 1.49% chance of exploitation in the next 30 days, higher than 74.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.49%
0%100%
Low · +0.05 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 31-03-2026
    PublishedVulnerability first disclosed.
  2. 25-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

1.49%

Chance of exploitation in the next 30 days

Percentile

75%

Versus all other CVEs

30-day change

Increase +0.05 pp

From 1.44% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Langchain

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard5 products
  • py3-langchainAll versions (No fix recorded)
  • py3.10-langchainAll versions (No fix recorded)
  • py3.11-langchainAll versions (No fix recorded)
  • py3.12-langchainAll versions (No fix recorded)
  • py3.13-langchainAll versions (No fix recorded)
Langchain1 product
Langchain-ai1 product
PyPI1 product
  • langchain-core< 1.2.22

4 vendors · 8 products

References

12 links
Show all 12 references