{"cve":"CVE-2026-34070","nvd":{"published":"2026-03-31T03:15:58.947","modified":"2026-08-25T13:18:38.963","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-22"],"references":["https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c","https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22","https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54","https://access.redhat.com/errata/RHSA-2026:24766","https://access.redhat.com/errata/RHSA-2026:37275"],"products":["langchain:langchain_core"],"source":"nvd","synced_at":"2026-10-19T22:28:18.033120106+00:00"},"epss":{"cve":"CVE-2026-34070","score":0.01436,"percentile":0.73126,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-qh6h-p6c9-ff54","url":"https://osv.dev/vulnerability/GHSA-qh6h-p6c9-ff54","summary":"LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions","modified":"2026-09-10T03:50:40.646863770Z","packages":[{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":["<1.2.22"],"fixed":["1.2.22"]}]},{"id":"PYSEC-2026-2193","url":"https://osv.dev/vulnerability/PYSEC-2026-2193","summary":"","modified":"2026-07-13T07:15:26.389701816Z","packages":[{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":["<1.2.22"],"fixed":["1.2.22"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}