PyPI (Python)Worst: Critical9 advisories
langchain-core: known vulnerabilities
langchain-core has 9 reviewed security advisories in the GitHub Advisory Database — 1 critical, 3 high, 3 moderate, 2 low. The most recent was published 2026-05-26. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the langchain-core versions running across your servers, containers and images, and ranks what to patch first.
How to fix langchain-core
Upgrade langchain-core to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade langchain-core (pin langchain-core>=0.3.85)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (9)
LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()` allowlists
High 8.2 CWE-502
— Affected: before 0.3.85. Fixed in 0.3.85. Published 2026-05-26. GHSA-pjwx-r37v-7724 · CVE-2026-44843
LangChain has incomplete f-string validation in prompt templates
Moderate 5.3 CWE-1336 CWE-20
— Affected: from 1.0.0a1 up to 1.2.28. Fixed in 1.2.28. Published 2026-04-09. GHSA-926x-3r5x-gfhw · CVE-2026-40087
LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions
High 7.5 CWE-22
— Affected: before 1.2.22. Fixed in 1.2.22. Published 2026-03-31. GHSA-qh6h-p6c9-ff54 · CVE-2026-34070
LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages
Low 3.7 CWE-918
— Affected: before 1.2.11. Fixed in 1.2.11. Published 2026-02-10. GHSA-2g6r-c272-w58r · CVE-2026-26013
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
Critical 9.3 CWE-502
— Affected: before 0.3.81. Fixed in 0.3.81. Published 2025-12-23. GHSA-c67j-w6g6-q2cm · CVE-2025-68664
LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates
High CWE-1336
— Affected: before 0.3.80. Fixed in 0.3.80. Published 2025-11-21. GHSA-6qv9-48xg-fc7f · CVE-2025-65106
langchain-core allows unauthorized users to read arbitrary files from the host file system
Moderate 5.3 CWE-497
— Affected: from 0.3.0 up to 0.3.15. Fixed in 0.3.15. Published 2025-03-20. GHSA-5chr-fjjv-38qv · CVE-2024-10940
LangChain's XMLOutputParser vulnerable to XML Entity Expansion
Moderate 5.9 CWE-776
— Affected: before 0.1.35. Fixed in 0.1.35. Published 2024-03-26. GHSA-q84m-rmw3-4382 · CVE-2024-1455
LangChain directory traversal vulnerability
Low
— Affected: before 0.1.30. Fixed in 0.1.30. Published 2024-03-04. GHSA-h59x-p739-982c · CVE-2024-28088
Find langchain-core across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.