SECURITY & CVE TRACK RECORD

LangChain Security Advisories, CVEs & Patched Versions

Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for LangChain.

Total Tracked Advisories
46
24 distinct CVE numbers
Critical & High Severity
26
57% of all disclosures
Latest Security Fix
0.3.30
Tracked release notes
Security Posture Status
High Scrutiny
Deterministic OSV.dev telemetry
Tracked Vulnerability Timeline (46)
🛡️ CVE-2026-45134 PYSEC-2026-2555 Jul 13, 2026
HIGH (CVSS 7.1)

LangSmith SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning

## Description The LangSmith SDK's prompt pull methods (`pull_prompt` / `pull_prompt_commit` in Python, `pullPrompt` / `pullPromptCommit` in JS/TS) fetch and deserialize prompt manifests from the LangSmith Hub. These manifests may contain serialized LangChain objects and mode...

Vulnerable Range: 0 -> 0.3.30
Fix Version: 0.3.30
Official Advisory Source ↗
🛡️ CVE-2024-8309 PYSEC-2026-1507 Jul 07, 2026
MEDIUM (CVSS 4.9)

Langchain SQL Injection vulnerability

A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches i...

Vulnerable Range: 0 -> 0.2.0
Fix Version: 0.2.0
Official Advisory Source ↗
🛡️ CVE-2024-3571 PYSEC-2026-1510 Jul 07, 2026
MEDIUM (CVSS 6.5)

langchain vulnerable to path traversal

langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this vulnerability to read or write files anywhere on the filesystem, pote...

Vulnerable Range: 0 -> 0.0.353
Fix Version: 0.0.353
Official Advisory Source ↗
🛡️ CVE-2024-0243 PYSEC-2026-1509 Jul 07, 2026
LOW (CVSS 3.7)

langchain Server-Side Request Forgery vulnerability

With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of...

Vulnerable Range: 0 -> 0.1.0
Fix Version: 0.1.0
Official Advisory Source ↗
🛡️ CVE-2023-32786 PYSEC-2026-1508 Jul 07, 2026
HIGH (CVSS 7.5)

Langchain Server-Side Request Forgery vulnerability

In Langchain before 0.0.329, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting content into downstream tasks.

Vulnerable Range: 0 -> 0.0.329
Fix Version: 0.0.329
Official Advisory Source ↗
🛡️ CVE-2023-32785 PYSEC-2026-372 Jun 29, 2026
CRITICAL (CVSS 9.8)

Langchain SQL Injection vulnerability

In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2026-55443 PYSEC-2026-2192 Jun 22, 2026
MEDIUM (CVSS 5.5)

LangChain is a framework for building agents and LLM-powered applications. Prior to 1.3.9, several LangChain components that resolve filesystem paths or expand search patterns do not consistently conf

LangChain is a framework for building agents and LLM-powered applications. Prior to 1.3.9, several LangChain components that resolve filesystem paths or expand search patterns do not consistently confine the resolved path to the intended root directory. Affected behaviors incl...

Vulnerable Range: 0 -> 1.3.9
Fix Version: 1.3.9
Official Advisory Source ↗
🛡️ CVE-2026-55443 GHSA-gr75-jv2w-4656 Jun 16, 2026
MEDIUM (CVSS 5.1)

LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders

## Summary Several LangChain components that resolve filesystem paths or expand search patterns do not consistently confine the *resolved* path to the intended root directory. Affected behaviors include: a file-search agent middleware that validates a starting directory but n...

Vulnerable Range: 0 -> 1.3.9, 0 -> 1.4.6
Fix Version: 1.3.9
Official Advisory Source ↗
🛡️ CVE-2026-45134 GHSA-3644-q5cj-c5c7 May 13, 2026
HIGH (CVSS 7.1)

LangSmith SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning

## Description The LangSmith SDK's prompt pull methods (`pull_prompt` / `pull_prompt_commit` in Python, `pullPrompt` / `pullPromptCommit` in JS/TS) fetch and deserialize prompt manifests from the LangSmith Hub. These manifests may contain serialized LangChain objects and mode...

Vulnerable Range: 0 -> 0.8.0, 0 -> 0.6.0, 0 -> 1.0.7
Fix Version: 0.8.0
Official Advisory Source ↗
🛡️ CVE-2024-8309 GHSA-45pg-36p6-83v9 Oct 29, 2024
MEDIUM (CVSS 4.9)

Langchain SQL Injection vulnerability

A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches i...

Vulnerable Range: 0.2.0 -> 0.2.19, 0 -> 0.2.0
Fix Version: 0.2.19
Official Advisory Source ↗
🛡️ CVE-2024-5998 PYSEC-2024-323 Sep 17, 2024
HIGH (CVSS 7.8)

A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of untrusted data. This can lead to the execution of arbitrary commands via the

A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of untrusted data. This can lead to the execution of arbitrary commands via the os.system function. The issue affects the latest version of the product.

Vulnerable Range: 0 -> 0.2.9
Fix Version: 0.2.9
Official Advisory Source ↗
🛡️ CVE-2024-2965 GHSA-3hjh-jh2h-vrg6 Jun 06, 2024
MEDIUM (CVSS 4.2)

Denial of service in langchain-community

Denial of service in `SitemapLoader` Document Loader in the `langchain-community` package, affecting versions below 0.2.5. The `parse_sitemap` method, responsible for parsing sitemaps and extracting URLs, lacks a mechanism to prevent infinite recursion when a sitemap URL refer...

Vulnerable Range: 0 -> 0.2.5, 0 -> 0.2.5
Fix Version: 0.2.5
Official Advisory Source ↗
🛡️ CVE-2024-2965 PYSEC-2024-118 Jun 06, 2024
MEDIUM (CVSS 4.7)

A Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-ai/langchain` repository, affecting all versions. The `parse_sitemap` method, responsible for parsing site

A Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-ai/langchain` repository, affecting all versions. The `parse_sitemap` method, responsible for parsing sitemaps and extracting URLs, lacks a mechanism to prevent infinite recursion whe...

Vulnerable Range: 0 -> 73c42306745b0831aa6fe7fe4eeb70d2c2d87a82, 0 -> 0.2.5
Fix Version: 73c42306745b0831aa6fe7fe4eeb70d2c2d87a82
Official Advisory Source ↗
🛡️ CVE-2024-3571 GHSA-rgp8-pm28-3759 Apr 16, 2024
MEDIUM (CVSS 6.5)

langchain vulnerable to path traversal

langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this vulnerability to read or write files anywhere on the filesystem, pote...

Vulnerable Range: 0 -> 0.0.353
Fix Version: 0.0.353
Official Advisory Source ↗
🛡️ CVE-2024-28088 GHSA-h59x-p739-982c Mar 04, 2024
LOW

LangChain directory traversal vulnerability

LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outc...

Vulnerable Range: 0 -> 0.0.339, 0 -> 0.1.30
Fix Version: 0.0.339
Official Advisory Source ↗
🛡️ CVE-2024-28088 PYSEC-2024-43 Mar 04, 2024
UNRATED

LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading con

LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outc...

Vulnerable Range: 0 -> 0.1.11
Fix Version: 0.1.11
Official Advisory Source ↗
🛡️ CVE-2024-0243 GHSA-h9j7-5xvc-qhg5 Feb 26, 2024
LOW (CVSS 3.7)

langchain Server-Side Request Forgery vulnerability

With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of...

Vulnerable Range: 0 -> 0.1.0
Fix Version: 0.1.0
Official Advisory Source ↗
🛡️ CVE-2023-32786 GHSA-6h8p-4hx9-w66c Oct 21, 2023
HIGH (CVSS 7.5)

Langchain Server-Side Request Forgery vulnerability

In Langchain before 0.0.329, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting content into downstream tasks.

Vulnerable Range: 0 -> 0.0.329
Fix Version: 0.0.329
Official Advisory Source ↗
🛡️ CVE-2023-32785 GHSA-8h5w-f6q9-wg35 Oct 21, 2023
CRITICAL (CVSS 9.8)

Langchain SQL Injection vulnerability

In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-46229 GHSA-655w-fm8m-m478 Oct 19, 2023
HIGH (CVSS 8.8)

LangChain Server Side Request Forgery vulnerability

LangChain before 0.0.317 allows SSRF via `document_loaders/recursive_url_loader.py` because crawling can proceed from an external server to an internal server.

Vulnerable Range: 0 -> 0.0.317
Fix Version: 0.0.317
Official Advisory Source ↗
🛡️ CVE-2023-46229 PYSEC-2023-205 Oct 19, 2023
UNRATED

LangChain before 0.0.317 allows SSRF via document_loaders/recursive_url_loader.py because crawling can proceed from an external server to an internal server.

LangChain before 0.0.317 allows SSRF via document_loaders/recursive_url_loader.py because crawling can proceed from an external server to an internal server.

Vulnerable Range: 0 -> 9ecb7240a480720ec9d739b3877a52f76098a2b8, 0 -> 0.0.317
Fix Version: 9ecb7240a480720ec9d739b3877a52f76098a2b8
Official Advisory Source ↗
🛡️ CVE-2023-39631 GHSA-f73w-4m7g-ch9x Sep 01, 2023
CRITICAL (CVSS 9.8)

Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library

An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library. Patches: Released in v.0.0.308. numexpr dependency is optional for langchain.

Vulnerable Range: 0 -> 0.0.308, 0 -> 2.8.5
Fix Version: 0.0.308
Official Advisory Source ↗
🛡️ CVE-2023-39631 PYSEC-2023-162 Sep 01, 2023
CRITICAL (CVSS 9.8)

An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.

An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.

Vulnerable Range: 0 -> 0.0.308
Fix Version: 0.0.308
Official Advisory Source ↗
🛡️ CVE-2023-36281 GHSA-7gfq-f96f-g85j Aug 22, 2023
CRITICAL (CVSS 9.8)

langchain vulnerable to arbitrary code execution

An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via the via the a json file to the `load_prompt` parameter. This is related to `__subclasses__` or a template.

Vulnerable Range: 0 -> 0.0.312
Fix Version: 0.0.312
Official Advisory Source ↗
🛡️ CVE-2023-36281 PYSEC-2023-151 Aug 22, 2023
CRITICAL (CVSS 9.8)

An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via the via the a json file to the load_prompt parameter.

An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via the via the a json file to the load_prompt parameter.

Vulnerable Range: 0 -> 0.0.171
Fix Version: 0.0.171
Official Advisory Source ↗
🛡️ CVE-2023-38896 GHSA-92j5-3459-qgp4 Aug 15, 2023
CRITICAL (CVSS 9.8)

LangChain vulnerable to arbitrary code execution

An issue in Harrison Chase langchain before version 0.0.236 allows a remote attacker to execute arbitrary code via the `from_math_prompt` and `from_colored_object_prompt` functions.

Vulnerable Range: 0 -> 0.0.236
Fix Version: 0.0.236
Official Advisory Source ↗
🛡️ CVE-2023-38860 GHSA-fj32-q626-pjjc Aug 15, 2023
CRITICAL (CVSS 9.8)

LangChain vulnerable to arbitrary code execution

An issue in LangChain prior to v.0.0.247 allows a remote attacker to execute arbitrary code via the prompt parameter.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-39659 GHSA-prgp-w7vf-ch62 Aug 15, 2023
CRITICAL (CVSS 9.8)

LangChain vulnerable to arbitrary code execution

An issue in langchain langchain-ai before version 0.0.325 allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.

Vulnerable Range: 0 -> 0.0.325
Fix Version: 0.0.325
Official Advisory Source ↗
🛡️ CVE-2023-38860 PYSEC-2023-145 Aug 15, 2023
CRITICAL (CVSS 9.8)

An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.

An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-38896 PYSEC-2023-146 Aug 15, 2023
CRITICAL (CVSS 9.8)

An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.

An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.

Vulnerable Range: 0 -> 0.0.195
Fix Version: 0.0.195
Official Advisory Source ↗
🛡️ CVE-2023-39659 PYSEC-2023-147 Aug 15, 2023
CRITICAL (CVSS 9.8)

An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.

An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.

Vulnerable Range: 0 -> 0.0.233
Fix Version: 0.0.233
Official Advisory Source ↗
🛡️ CVE-2023-36095 GHSA-gwqq-6vq7-5j86 Aug 05, 2023
CRITICAL (CVSS 9.8)

langchain Code Injection vulnerability

An issue in Harrison Chase langchain allows an attacker to execute arbitrary code via the PALChain,from_math_prompt(llm).run in the python exec method.

Vulnerable Range: 0 -> 0.0.236
Fix Version: 0.0.236
Official Advisory Source ↗
🛡️ CVE-2023-36095 PYSEC-2023-138 Aug 05, 2023
CRITICAL (CVSS 9.8)

An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_obje

An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.

Vulnerable Range: 0 -> 0.0.236
Fix Version: 0.0.236
Official Advisory Source ↗
🛡️ CVE-2023-36188 GHSA-57fc-8q82-gfp3 Jul 06, 2023
CRITICAL (CVSS 9.8)

langchain vulnerable to arbitrary code execution

An issue in langchain allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-36189 GHSA-7q94-qpjr-xpgm Jul 06, 2023
HIGH (CVSS 7.5)

langchain SQL Injection vulnerability

SQL injection vulnerability in langchain allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-36188 PYSEC-2023-109 Jul 06, 2023
UNRATED

An issue in langchain v.0.0.64 allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.

An issue in langchain v.0.0.64 allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-36189 PYSEC-2023-110 Jul 06, 2023
UNRATED

SQL injection vulnerability in langchain v.0.0.64 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.

SQL injection vulnerability in langchain v.0.0.64 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-36258 GHSA-2qmj-7962-cjq8 Jul 03, 2023
CRITICAL (CVSS 9.8)

langchain arbitrary code execution vulnerability

An issue in langchain allows an attacker to execute arbitrary code via the PALChain in the python exec method.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-36258 PYSEC-2023-98 Jul 03, 2023
UNRATED

An issue in langchain v.0.0.199 allows an attacker to execute arbitrary code via the PALChain in the python exec method.

An issue in langchain v.0.0.199 allows an attacker to execute arbitrary code via the PALChain in the python exec method.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-34541 GHSA-6643-h7h5-x9wh Jun 20, 2023
CRITICAL (CVSS 9.8)

Langchain vulnerable to arbitrary code execution

Langchain 0.0.171 is vulnerable to Arbitrary code execution in `load_prompt`.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-34541 PYSEC-2023-92 Jun 20, 2023
UNRATED

Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.

Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.

Vulnerable Range: 0 -> 0.0.247
Fix Version: 0.0.247
Official Advisory Source ↗
🛡️ CVE-2023-34540 GHSA-x32c-59v5-h7fg Jun 14, 2023
CRITICAL (CVSS 9.8)

Langchain OS Command Injection vulnerability

Langchain before v0.0.225 was discovered to contain a remote code execution (RCE) vulnerability in the component JiraAPIWrapper (aka the JIRA API wrapper). This vulnerability allows attackers to execute arbitrary code via crafted input. As noted in the "releases/tag" reference...

Vulnerable Range: 0 -> 0.0.225
Fix Version: 0.0.225
Official Advisory Source ↗
🛡️ CVE-2023-34540 PYSEC-2023-91 Jun 14, 2023
UNRATED

Langchain 0.0.171 is vulnerable to Arbitrary Code Execution.

Langchain 0.0.171 is vulnerable to Arbitrary Code Execution.

Vulnerable Range: 0 -> 0.0.225
Fix Version: 0.0.225
Official Advisory Source ↗
🛡️ CVE-2023-29374 GHSA-fprp-p869-w6q2 Apr 05, 2023
CRITICAL (CVSS 9.8)

LangChain vulnerable to code injection

In LangChain through 0.0.131, the `LLMMathChain` chain allows prompt injection attacks that can execute arbitrary code via the Python `exec()` method.

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2023-29374 PYSEC-2023-18 Apr 05, 2023
UNRATED

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.

Vulnerable Range: 0 -> 0.0.132
Fix Version: 0.0.132
Official Advisory Source ↗