# CVE-2026-34070: LangChain Core has Path Traversal vulnerabilites in legacy \`load\_prompt\` functions

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-03-31 · Modified: 2026-08-25
- Aliases: GHSA-qh6h-p6c9-ff54, PYSEC-2026-2193, CGA-2fpf-7g9m-2qmq, CGA-6v6x-63mw-c7c7, CGA-c7x2-7vq7-wwh8, CGA-cvfr-456h-whqf, CGA-cw2v-ff89-99v5, CGA-fp3p-rp74-xr9h, CGA-pr9r-mcxc-f8xq, CGA-qv7j-94qw-fwqp, CGA-w6x4-xqrq-ffqx, CGA-w7ch-hmgx-7j87
- Record: https://cvemate.com/vulnerability/CVE-2026-34070 · JSON: https://cvemate.com/vulnerability/CVE-2026-34070/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.488%, percentile 74.951%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard py3-langchain (Chainguard): All versions (No fix recorded)
- chainguard py3.10-langchain (Chainguard): All versions (No fix recorded)
- chainguard py3.11-langchain (Chainguard): All versions (No fix recorded)
- chainguard py3.12-langchain (Chainguard): All versions (No fix recorded)
- chainguard py3.13-langchain (Chainguard): All versions (No fix recorded)
- langchain-ai langchain: \< 1.2.22
- langchain langchain\_core: \< 1.2.22
- PyPI langchain-core (PyPI): \< 1.2.22

## References

- <https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54>
- <https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c>
- <https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22>
- <https://access.redhat.com/security/cve/CVE-2026-34070>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2453287>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34070.json>
- <https://access.redhat.com/errata/RHSA-2026:24766>
- <https://access.redhat.com/errata/RHSA-2026:59159>
- <https://access.redhat.com/errata/RHSA-2026:37275>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34070>
- <https://github.com/langchain-ai/langchain>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34070.json>

---

Data as of 2026-12-05T12:43:05.199Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
