PyPI (Python)Worst: Critical22 advisories
langchain: known vulnerabilities
langchain has 22 reviewed security advisories in the GitHub Advisory Database — 12 critical, 4 high, 3 moderate, 3 low. The most recent was published 2026-06-22. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the langchain versions running across your servers, containers and images, and ranks what to patch first.
How to fix langchain
Upgrade langchain to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade langchain (pin langchain>=1.3.9)
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 (22)
LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders
Moderate 5.1 CWE-22 CWE-59
— Affected: before 1.3.9. Fixed in 1.3.9. Published 2026-06-22. GHSA-gr75-jv2w-4656 · CVE-2026-55443
LangSmith SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning
High 7.1 CWE-502
— Affected: before 0.3.30. Fixed in 0.3.30. Published 2026-05-27. GHSA-3644-q5cj-c5c7 · CVE-2026-45134
Langchain SQL Injection vulnerability
Low 4.9 CWE-74 CWE-89
— Affected: before 0.2.0. Fixed in 0.2.0. Published 2024-10-29. GHSA-45pg-36p6-83v9 · CVE-2024-8309
Denial of service in langchain-community
Moderate 4.2 CWE-400 CWE-674
— Affected: before 0.2.5. Fixed in 0.2.5. Published 2024-06-06. GHSA-3hjh-jh2h-vrg6 · CVE-2024-2965
langchain vulnerable to path traversal
Moderate 6.5 CWE-22
— Affected: before 0.0.353. Fixed in 0.0.353. Published 2024-04-16. GHSA-rgp8-pm28-3759 · CVE-2024-3571
LangChain directory traversal vulnerability
Low
— Affected: before 0.0.339. Fixed in 0.0.339. Published 2024-03-04. GHSA-h59x-p739-982c · CVE-2024-28088
langchain Server-Side Request Forgery vulnerability
Low 3.7 CWE-918
— Affected: before 0.1.0. Fixed in 0.1.0. Published 2024-02-26. GHSA-h9j7-5xvc-qhg5 · CVE-2024-0243
Langchain Server-Side Request Forgery vulnerability
High 7.5 CWE-74 CWE-918
— Affected: before 0.0.329. Fixed in 0.0.329. Published 2023-10-20. GHSA-6h8p-4hx9-w66c · CVE-2023-32786
Langchain SQL Injection vulnerability
Critical 9.8 CWE-74 CWE-89
— Affected: before 0.0.247. Fixed in 0.0.247. Published 2023-10-20. GHSA-8h5w-f6q9-wg35 · CVE-2023-32785
LangChain Server Side Request Forgery vulnerability
High 8.8 CWE-918
— Affected: before 0.0.317. Fixed in 0.0.317. Published 2023-10-19. GHSA-655w-fm8m-m478 · CVE-2023-46229
Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library
Critical 9.8 CWE-94
— Affected: before 0.0.308. Fixed in 0.0.308. Published 2023-09-01. GHSA-f73w-4m7g-ch9x · CVE-2023-39631
langchain vulnerable to arbitrary code execution
Critical 9.8 CWE-94
— Affected: before 0.0.312. Fixed in 0.0.312. Published 2023-08-22. GHSA-7gfq-f96f-g85j · CVE-2023-36281
LangChain vulnerable to arbitrary code execution
Critical 9.8 CWE-74 CWE-94
— Affected: before 0.0.236. Fixed in 0.0.236. Published 2023-08-15. GHSA-92j5-3459-qgp4 · CVE-2023-38896
LangChain vulnerable to arbitrary code execution
Critical 9.8 CWE-94
— Affected: before 0.0.247. Fixed in 0.0.247. Published 2023-08-15. GHSA-fj32-q626-pjjc · CVE-2023-38860
LangChain vulnerable to arbitrary code execution
Critical 9.8 CWE-74
— Affected: before 0.0.325. Fixed in 0.0.325. Published 2023-08-15. GHSA-prgp-w7vf-ch62 · CVE-2023-39659
langchain Code Injection vulnerability
Critical 9.8 CWE-94
— Affected: before 0.0.236. Fixed in 0.0.236. Published 2023-08-05. GHSA-gwqq-6vq7-5j86 · CVE-2023-36095
langchain vulnerable to arbitrary code execution
Critical 9.8 CWE-74
— Affected: before 0.0.247. Fixed in 0.0.247. Published 2023-07-06. GHSA-57fc-8q82-gfp3 · CVE-2023-36188
langchain SQL Injection vulnerability
High 7.5 CWE-89
— Affected: before 0.0.247. Fixed in 0.0.247. Published 2023-07-06. GHSA-7q94-qpjr-xpgm · CVE-2023-36189
langchain arbitrary code execution vulnerability
Critical 9.8 CWE-94
— Affected: before 0.0.247. Fixed in 0.0.247. Published 2023-07-03. GHSA-2qmj-7962-cjq8 · CVE-2023-36258
Langchain vulnerable to arbitrary code execution
Critical 9.8
— Affected: before 0.0.247. Fixed in 0.0.247. Published 2023-06-20. GHSA-6643-h7h5-x9wh · CVE-2023-34541
Langchain OS Command Injection vulnerability
Critical 9.8 CWE-78
— Affected: before 0.0.225. Fixed in 0.0.225. Published 2023-06-14. GHSA-x32c-59v5-h7fg · CVE-2023-34540
LangChain vulnerable to code injection
Critical 9.8 CWE-74 CWE-94
— Affected: up to and including 0.0.131. No fixed release is listed. Published 2023-04-05. GHSA-fprp-p869-w6q2 · CVE-2023-29374
Find langchain 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.