Advisory record · GHSA-qh6h-p6c9-ff54

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

CVSS 7.5 HighEPSS 0.014 · 73rd percentile

Published by the GitHub Advisory Database at 27 Mar 2026, 19:45 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
langchain-corePyPI<1.2.221.2.22
Identifiers
GHSA-qh6h-p6c9-ff54 · CVE-2026-34070 · PYSEC-2026-2193
Weakness (CWE)
CWE-22
Published
27 Mar 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

langchain-core versions before 1.2.22 let an attacker who can influence the prompt configuration passed to the legacy load_prompt() or load_prompt_from_config() functions read arbitrary files on the host. Reads are limited only by file extension (.txt, .json, .yaml, .yml). Upgrade langchain-core to 1.2.22 or later.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.014, the 73rd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 26 Mar 2026, 13:13 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:34 UTC First seen by agentprime
  3. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.