7.5

CVE-2026-34070: langchain-ai langchain Path Traversal

CVSS: 7.5v3.1HighModified
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) Path Traversal vulnerability in langchain-ai langchain. EPSS estimates a 1.21% chance of exploitation in the next 30 days, higher than 68% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.21%
0%100%
Low · -0.17 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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.21%

Chance of exploitation in the next 30 days

Percentile

68%

Versus all other CVEs

30-day change

-0.17 pp

From 1.38% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.21%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Langchain

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

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