# langchain-core (PyPI)

Building applications with LLMs through composability

- Latest: 1.9.0 (2026-12-03)
- Licence: MIT
- Downloads: 160091355 last month
- Advisories on the latest version: 0

- CVE-2026-26013 : LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages Fixed in 1.2.11.
- CVE-2026-40087 : LangChain has incomplete f-string validation in prompt templates Fixed in 0.3.84, 1.2.28.
- CVE-2026-44843 : LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()` allowlists Fixed in 0.3.85, 1.3.3.
- CVE-2024-10940 : langchain-core allows unauthorized users to read arbitrary files from the host file system Fixed in 0.1.53, 0.2.43, 0.3.15.
- CVE-2025-65106 : LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates Fixed in 0.3.80, 1.0.7.
- CVE-2024-1455 : LangChain's XMLOutputParser vulnerable to XML Entity Expansion Fixed in 0.1.35.
- CVE-2025-68664 : LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs Fixed in 0.3.81, 1.2.5.
- CVE-2026-44843 HIGH: LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()` allowlists Fixed in 1.3.3, 0.3.85.
- CVE-2026-40087 MODERATE: LangChain has incomplete f-string validation in prompt templates Fixed in 0.3.84, 1.2.28.
- CVE-2026-34070 :  Fixed in 1.2.22.
- CVE-2026-34070 HIGH: LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions Fixed in 1.2.22.
- CVE-2026-26013 LOW: LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages Fixed in 1.2.11.
- CVE-2025-68664 CRITICAL: LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs Fixed in 1.2.5, 0.3.81.
- CVE-2025-65106 HIGH: LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates Fixed in 1.0.7, 0.3.80.
- CVE-2024-10940 MODERATE: langchain-core allows unauthorized users to read arbitrary files from the host file system Fixed in 0.1.53, 0.2.43, 0.3.15.
- CVE-2024-1455 MODERATE: LangChain's XMLOutputParser vulnerable to XML Entity Expansion Fixed in 0.1.35.
- CVE-2024-28088 LOW: LangChain directory traversal vulnerability Fixed in 0.1.30.
- CVE-2024-28088 :  Fixed in 0.1.11.

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
