LangChain CVEs
Every vulnerability NIST NVD lists for LangChain itself, newest first, refreshed every 6 hours. A CVE is counted here when NVD files it under the LangChain product (its CPE) or, while NVD has not analysed it yet, when the advisory names LangChain as the affected product. Entries listed in CISA KEV are exploited in the wild: patch those first. Newest entry: 6 Oct 2026.
LangChain0 in 30 days0 critical0 on KEVCVEs on NIST NVD52
All LangChain CVEs
Newest first. Each one has its page, with the affected versions and the release that fixes it.
CVE-2026-106119medium 6LangChain (@langchain/mongodb): MongoDBChatMessageHistory does not enforce the documented string typeLangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured…6 Oct 2026CVE-2026-105799low 2.3LangChain (@langchain/redis): @langchain/redis does not escape attacker-controlled valuesLangChain is a framework for building LLM-powered applications. Prior to 1.1.1, @langchain/redis does not escape attacker-controlled values in structured RediSearch TAG filters…6 Oct 2026CVE-2026-72848high 8.6LangChain (langchain-community): Server-side request forgery in SitemapLoader.parse_sitemapSitemapLoader.parse_sitemap in langchain_community/document_loaders/sitemap.py applies the documented restrict_to_same_domain control only to leaf url entries. The loop over url…20 Aug 2026CVE-2026-55443medium 5.1LangChain: Path traversalLangChain 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…22 Jun 2026CVE-2026-44843high 8.2LangChain: Deserialization of untrusted dataLangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.85 and 1.3.3, LangChain contains older runtime code paths that deserialize run inputs, run…26 May 2026CVE-2026-41488low 3.1LangChain (langchain-openai): _url_to_size helper validated URLs for SSRF protection and then fetched themLangChain is a framework for building agents and LLM-powered applications. Prior to 1.1.14, langchain-openai's _url_to_size() helper (used by get_num_tokens_from_messages for…24 Apr 2026CVE-2026-41481medium 6.5LangChain (langchain-text-splitters): HTMLHeaderTextSplitter.split_text_from_url validated the initial URLLangChain is a framework for building agents and LLM-powered applications. Prior to langchain-text-splitters
1.1.2, HTMLHeaderTextSplitter.split_text_from_url() validated the…24 Apr 2026CVE-2026-40087medium 5.3LangChain (langchain-core): F-string prompt-template validation was incomplete in two respectsLangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.84 and 1.2.28, LangChain's f-string prompt-template validation was incomplete in two…9 Apr 2026CVE-2026-34070high 7.5LangChain (langchain-core): Multiple functions in langchain_core.prompts.loading read files from paths embeddedLangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22, multiple functions in langchain_core.prompts.loading read files from paths…31 Mar 2026CVE-2026-27795medium 4.1LangChain (@langchain/community): A redirect-based Server-Side Request Forgery bypass exists in RecursiveUrlLoaderLangChain is a framework for building LLM-powered applications. Prior to version 1.1.8, a redirect-based Server-Side Request Forgery (SSRF) bypass exists in `RecursiveUrlLoader`…25 Feb 2026CVE-2026-26019medium 4.1LangChain (@langchain/community): The RecursiveUrlLoader class in @langchain/community is a web crawler that recursively follows linksLangChain is a framework for building LLM-powered applications. Prior to 1.1.14, the RecursiveUrlLoader class in @langchain/community is a web crawler that recursively follows…11 Feb 2026CVE-2026-26013low 3.7LangChain (langchain-core): The ChatOpenAI.get_num_tokens_from_messages method fetches arbitrary image_url valuesLangChain is a framework for building agents and LLM-powered applications. Prior to 1.2.11, the ChatOpenAI.get_num_tokens_from_messages() method fetches arbitrary image_url values…10 Feb 2026CVE-2024-58340high 7.5LangChain: Regular expression denial-of-service (ReDoS) in the MRKLOutputParser.parse() methodLangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the MRKLOutputParser.parse() method…12 Jan 2026CVE-2025-68665high 8.6LangChain (LangChain.js): Serialization injection in JS's toJSON() methodLangChain is a framework for building LLM-powered applications. Prior to @langchain/core versions 0.3.80 and 1.1.8, and prior to langchain versions 0.3.37 and 1.2.3, a…23 Dec 2025CVE-2025-68664critical 9.3LangChain (langchain-core): Serialization injection in dumps() and dumpd() functionsLangChain is a framework for building agents and LLM-powered applications. Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's…23 Dec 2025CVE-2025-65106high 8.3LangChain (langchain-core): Template injection in prompt template systemLangChain is a framework for building agents and LLM-powered applications. From versions 0.3.79 and prior and 1.0.0 to 1.0.6, a template injection vulnerability exists in…21 Nov 2025CVE-2025-8709high 7.3LangGraph (langgraph-checkpoint-sqlite), LangChain: SQL injectionA SQL injection vulnerability exists in the langchain-ai/langchain repository, specifically in the LangGraph's SQLite store implementation. The affected version is…26 Oct 2025CVE-2025-6985high 7.5LangChain (langchain-text-splitters): XML External Entity (XXE) attacks in lxml.etree.parseThe HTMLSectionSplitter class in langchain-text-splitters version 0.3.8 is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing. This vulnerability arises…6 Oct 2025CVE-2025-6984high 7.5LangChain: XML External Entity (XXE) attacks in the EverNoteLoader componentThe langchain-ai/langchain project, specifically the EverNoteLoader component, is vulnerable to XML External Entity (XXE) attacks due to insecure XML parsing. The affected version…4 Sept 2025CVE-2025-46059critical 9.8LangChain: Indirect prompt injection in the GmailToolkit componentlangchain-ai v0.3.51 was discovered to contain an indirect prompt injection vulnerability in the GmailToolkit component. This vulnerability allows attackers to execute arbitrary…29 Jul 2025CVE-2025-2828critical 10LangChain: Server-Side Request ForgeryA Server-Side Request Forgery (SSRF) vulnerability exists in the RequestsToolkit component of the langchain-community package (specifically…23 Jun 2025CVE-2024-10940medium 5.3LangChain (langchain-core): Exposure of system dataA vulnerability in langchain-core versions >=0.1.17,<0.1.53, >=0.2.0,<0.2.43, and >=0.3.0,<0.3.15 allows unauthorized users to read arbitrary files from the host file system. The…20 Mar 2025CVE-2024-8309critical 9.8LangChain: SQL injectionA 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…29 Oct 2024CVE-2024-7774critical 9.1LangChain (LangChain.js): Path traversal in the getFullPath methodA path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version 0.2.5. This vulnerability allows attackers to save files anywhere in the…29 Oct 2024CVE-2024-7042critical 9.8LangChain: SQL injectionA vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injection, leading to SQL injection…29 Oct 2024CVE-2024-46946critical 9.8LangChain (langchain-experimental): 0.1.17 through 0.3.0 for LangChain allows attackers to execute arbitrary codelangchain_experimental (aka LangChain Experimental) 0.1.17 through 0.3.0 for LangChain allows attackers to execute arbitrary code through sympy.sympify (which uses eval) in…19 Sept 2024CVE-2024-5998high 7.8LangChain: Vulnerability in the FAISS.deserialize_from_bytes functionA 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…17 Sept 2024CVE-2024-21513high 8.5LangChain (langchain-experimental): Arbitrary Code ExecutionVersions of the package langchain-experimental from 0.0.15 and before 0.0.21 are vulnerable to Arbitrary Code Execution when retrieving values from the database, the code will…15 Jul 2024CVE-2024-38459high 7.8LangChain (langchain-experimental): NOTE; this issue exists because of an incomplete fix for CVE-2024-27444langchain_experimental (aka LangChain Experimental) before 0.0.61 for LangChain provides Python REPL access without an opt-in step. NOTE; this issue exists because of an…16 Jun 2024CVE-2024-3095high 7.7LangChain: Server-Side Request Forgery (SSRF) in the Web Research Retriever componentA Server-Side Request Forgery (SSRF) vulnerability exists in the Web Research Retriever component of langchain-ai/langchain version 0.1.5. The vulnerability arises because the Web…6 Jun 2024CVE-2024-2965medium 4.7LangChain: Denial-of-Service (DoS) in the SitemapLoader classA Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-ai/langchain` repository, affecting all versions. The `parse_sitemap` method…6 Jun 2024CVE-2024-3571high 8.8LangChain: Path traversallangchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality…16 Apr 2024CVE-2024-1455medium 5.9LangChain: Vulnerability in the langchain-ai/langchain repositoryA vulnerability in the langchain-ai/langchain repository allows for a Billion Laughs Attack, a type of XML External Entity (XXE) exploitation. By nesting multiple layers of…26 Mar 2024CVE-2024-28088high 8.1LangChain: Lets ../ directory traversalLangChain 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…4 Mar 2024CVE-2024-2057medium 6.3LangChain: Server-side request forgery in TFIDFRetrieverA vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library…1 Mar 2024CVE-2024-27444critical 9.8LangChain (langchain-experimental): in LangChain before 0.1.8 allows an attackerlangchain_experimental (aka LangChain Experimental) in LangChain before 0.1.8 allows an attacker to bypass the CVE-2023-44467 fix and execute arbitrary code via the __import__…26 Feb 2024CVE-2024-0243high 8.1LangChain: With the following crawler configuration: ``python from bs4 import BeautifulSoupWith the following crawler configuration:
```python
from bs4 import BeautifulSoup as Soup
url = "https://example.com"
loader = RecursiveUrlLoader(
url=url, max_depth=2…26 Feb 2024CVE-2023-32786high 7.5LangChain: Prompt injection allows an attacker to force the service to retrieve dataIn Langchain through 0.0.155, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting…20 Oct 2023CVE-2023-46229high 8.8LangChain: Lets SSRF via document_loaders/recursive_url_loader.pyLangChain 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.19 Oct 2023CVE-2023-44467critical 9.8LangChain (langchain-experimental): in LangChain before 0.0.306 allows an attackerlangchain_experimental (aka LangChain Experimental) in LangChain before 0.0.306 allows an attacker to bypass the CVE-2023-36258 fix and execute arbitrary code via __import__ in…9 Oct 2023CVE-2023-39631critical 9.8LangChain: Code injectionAn 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.1 Sept 2023CVE-2023-36281critical 9.8LangChain: Code injection in load_promptAn issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to __subclasses__ or a template.22 Aug 2023CVE-2023-39659critical 9.8LangChain: Injection in the PythonAstREPLTool._run componentAn 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.15 Aug 2023CVE-2023-38896critical 9.8LangChain: Injection in from_math_promptAn 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.15 Aug 2023CVE-2023-38860critical 9.8LangChain: Code injectionAn issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.15 Aug 2023CVE-2023-36095critical 9.8LangChain: Code injection in from_math_promptAn 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…5 Aug 2023CVE-2023-36189high 7.5LangChain: SQL injection vulnerability in langchain before v0.0.247 allows a remote attackerSQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.6 Jul 2023CVE-2023-36188critical 9.8LangChain: InjectionAn issue in langchain v.0.0.64 allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.6 Jul 2023CVE-2023-36258critical 9.8LangChain: Code injection in os.systemAn issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because Python code with os.system, exec, or eval can be used.3 Jul 2023CVE-2023-34541critical 9.8LangChain: Arbitrary code execution in load_promptLangchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.20 Jun 2023CVE-2023-34540critical 9.8LangChain: Remote code execution (RCE) in the component JiraAPIWrapperLangchain 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…14 Jun 2023CVE-2023-29374critical 9.8LangChain: The LLMMathChain chain allows prompt injection attacks that can execute arbitrary codeIn LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.5 Apr 2023
Third-party tools that mention LangChain
Not counted above. These CVEs are in other products: plugins, wrappers and apps built on LangChain, or software that only names it. They do not affect LangChain itself. Each one is listed under its own product name.
CVE-2026-114510high 7.1Flexible GraphRAG: Improper encoding or escaping of output in falkordb_adapter.pyFlexible GraphRAG is a Python framework for building graph and retrieval-augmented generation applications across multiple graph, vector, and search backends…22 Oct 2026CVE-2026-75128critical 9.8Langchain-Chatchat: Exposes a POST /tools/call API endpoint that invokes any registered tool by nameLangchain-Chatchat through 0.3.1.3 exposes a POST /tools/call API endpoint that invokes any registered tool by name without authentication, leaving the…20 Oct 2026CVE-2026-51884critical 9.8Langchain Chatchat: Path traversalThe /knowledge_base/upload_temp_docs temporary document upload endpoint in Langchain Chatchat 0.3.1 is vulnerable to path traversal. By crafting malicious…1 Oct 2026CVE-2026-51883critical 9.1Langchain-Chatchat: Path traversalThe knowledge base creation and document upload interfaces in Langchain-Chatchat 0.3.0;0.3.1 is vulnerable to path traversal. An attacker can inject path…1 Oct 2026CVE-2026-51882critical 9.1Langchain-Chatchat: Path traversal in the /v1/files endpointThe OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An attacker can write files to arbitrary…1 Oct 2026CVE-2026-55253high 7.7LangChain MongoDB: Query injection in MongoDBSaver.listLangChain MongoDB provides integrations between MongoDB, Atlas, LangChain, and LangGraph. Prior to langgraph-checkpoint-mongodb 0.3.0 and…14 Sept 2026CVE-2026-45134high 7.1LangSmith Client SDKs: The LangSmith SDK's prompt pull methods fetch and deserialize prompt manifestsLangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to LangSmith SDK Python 0.8.0 and JS/TS 0.6.0, the LangSmith SDK's…27 May 2026CVE-2026-7847low 2.6chatchat-space Langchain-Chatchat: Insufficiently random values in the Uploaded File HandlerA vulnerability was found in chatchat-space Langchain-Chatchat up to 0.3.1.3. The affected element is the function _get_file_id of the file…5 May 2026CVE-2026-7846low 2.6chatchat-space Langchain-Chatchat: Time-of-check time-of-use in the OpenAI-Compatible File Upload APIA vulnerability has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. Impacted is the function files of the file…5 May 2026CVE-2026-7845low 2.6chatchat-space Langchain-Chatchat: Use of weak hash in the Vision Chat Paste Image HandlerA flaw has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. This issue affects the function PIL.Image.tobytes of the file…5 May 2026CVE-2026-7844medium 6.3chatchat-space Langchain-Chatchat: Missing authentication in the Compatible File ServiceA vulnerability was detected in chatchat-space Langchain-Chatchat up to 0.3.1.3. This vulnerability affects the function…5 May 2026CVE-2026-30617high 8.6LangChain-ChatChat: Remote code execution in its MCP STDIO server configuration and execution handlingLangChain-ChatChat 0.3.1 contains a remote code execution vulnerability in its MCP STDIO server configuration and execution handling. A remote attacker can…15 Apr 2026CVE-2026-25750high 8.1langchain langsmith: URL parameter injection in LangSmith StudioLangchain Helm Charts are Helm charts for deploying Langchain applications on Kubernetes. Prior to langchain-ai/helm version 0.12.71, a URL parameter injection…4 Mar 2026CVE-2025-45150critical 9.8x-d lab langchain-chatglm-webui: Insecure permissions in LangChain-ChatGLM-Webui commit ef829 allows attackersInsecure permissions in LangChain-ChatGLM-Webui commit ef829 allows attackers to arbitrarily view and download sensitive files via supplying a crafted request.1 Aug 2025CVE-2025-6855medium 5.5chatchat-space langchain-chatchat: Path traversal in the /v1/file. endpointA vulnerability, which was classified as critical, has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This issue affects some unknown processing…29 Jun 2025CVE-2025-6854medium 4.3chatchat-space langchain-chatchat: Path traversal in the /v1/files endpointA vulnerability classified as problematic was found in chatchat-space Langchain-Chatchat up to 0.3.1. This vulnerability affects unknown code of the file…29 Jun 2025CVE-2025-6853medium 6.3chatchat-space langchain-chatchat: Path traversal in the /knowledge_base/upload_temp_docs endpointA vulnerability classified as critical has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This affects the function upload_temp_docs of the file…29 Jun 2025
Sources and further reading
About LangChain: where the advisories come from, and our breakdowns.