langchain-core

Building applications with LLMs through composability

1.9.0Latest, 3 Dec 2026
16MDownloads, last month
0Advisories on the latest
18Advisories, all versions
MITLicence
15KStars
5.9/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages CVE-2026-26013 Fixed in 1.2.11 13 Jul 2026
LangChain has incomplete f-string validation in prompt templates CVE-2026-40087 Fixed in 0.3.84, 1.2.28 13 Jul 2026
LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()` allowlists CVE-2026-44843 Fixed in 0.3.85, 1.3.3 13 Jul 2026
langchain-core allows unauthorized users to read arbitrary files from the host file system CVE-2024-10940 Fixed in 0.1.53, 0.2.43, 0.3.15 7 Jul 2026
LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates CVE-2025-65106 Fixed in 0.3.80, 1.0.7 7 Jul 2026
LangChain's XMLOutputParser vulnerable to XML Entity Expansion CVE-2024-1455 Fixed in 0.1.35 7 Jul 2026
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs CVE-2025-68664 Fixed in 0.3.81, 1.2.5 29 Jun 2026
High LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()` allowlists CVE-2026-44843 Fixed in 1.3.3, 0.3.85 8 May 2026
Moderate LangChain has incomplete f-string validation in prompt templates CVE-2026-40087 Fixed in 0.3.84, 1.2.28 8 Apr 2026
PYSEC-2026-2193 CVE-2026-34070 Fixed in 1.2.22 31 Mar 2026
High LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions CVE-2026-34070 Fixed in 1.2.22 27 Mar 2026
Low LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages CVE-2026-26013 Fixed in 1.2.11 11 Feb 2026
Critical LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs CVE-2025-68664 Fixed in 1.2.5, 0.3.81 23 Dec 2025
High LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates CVE-2025-65106 Fixed in 1.0.7, 0.3.80 20 Nov 2025
Moderate langchain-core allows unauthorized users to read arbitrary files from the host file system CVE-2024-10940 Fixed in 0.1.53, 0.2.43, 0.3.15 20 Mar 2025

In the news

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