langchain-core: known vulnerabilities and the safe version
The version to be on
Version 1.3.3 or later fixes every vulnerability on this page that has a recorded fix.
Upgrade langchain-core with pip
pip install --upgrade "langchain-core>=1.3.3"
pip show langchain-core | grep VersionPin it in requirements.txt
langchain-core>=1.3.3Check the release notes before a large jump in version. Newer vulnerabilities may have been found since this page was updated.
Watch langchain-core
Get an email only when langchain-core has a new vulnerability record. Unsubscribe with one click.
Badge for your README
Shows the number of known critical and high vulnerabilities in langchain-core and the version that fixes them. It updates by itself.
Markdown
[](https://securityelites.com/ai-vulnerabilities/package/langchain-core/)All records
- LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()`…Unknown · CVE-2026-44843 · fixed in 1.3.3 · 9 May 2026
- LangChain has incomplete f-string validation in prompt templatesUnknown · CVE-2026-40087 · fixed in 1.2.28 · 9 Apr 2026
- LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functionsUnknown · CVE-2026-34070 · fixed in 1.2.22 · 28 Mar 2026
- LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messagesUnknown · CVE-2026-26013 · fixed in 1.2.11 · 11 Feb 2026
- LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIsUnknown · CVE-2025-68664 · fixed in 1.2.5 · 24 Dec 2025
- LangChain Vulnerable to Template Injection via Attribute Access in Prompt TemplatesUnknown · CVE-2025-65106 · fixed in 1.0.7 · 20 Nov 2025
- langchain-core allows unauthorized users to read arbitrary files from the host file systemUnknown · CVE-2024-10940 · fixed in 0.3.15 · 20 Mar 2025
- LangChain's XMLOutputParser vulnerable to XML Entity ExpansionUnknown · CVE-2024-1455 · fixed in 0.1.35 · 26 Mar 2024
- LangChain directory traversal vulnerabilityUnknown · CVE-2024-28088 · fixed in 0.1.11 · 4 Mar 2024