Sunday, 13 September 2026
8 agent hacks today 7 vs yesterday (1)

LangChain path traversal in prompt loading allows arbitrary file read (CVE-2026-34070)

Prior to langchain-core 1.2.22, functions in langchain_core.prompts.loading read files from paths embedded in deserialized prompt configs without validating against directory traversal or absolute paths, letting an attacker supplying user-influenced configs to load_prompt() or load_prompt_from_config() read arbitrary files (limited to .txt, .json and .yaml extensions). The issue was patched in version 1.2.22.

Disclosed 31 March 2026 · Record updated 13 September 2026

Impact

Applications passing user-influenced prompt configurations could be induced to read arbitrary files on the host filesystem, constrained only by file-extension checks.

Our coverage

No articles linked to this incident yet.

Sources

  1. nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-34070