All items
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
126 items
This release of langchain-core is version 1.2.8, following 1.2.7. The changelog is a list of commits, mostly titles with PR numbers, covering changes such as pretty_repr and pretty_print, get_buffer_string, the @tool decorator argument and return type requirements, yield_blobs returning an Iterator, and a comma_list utility that accepts any Iterable.
LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) flaw in the MRKLOutputParser.parse() method (libs/langchain/langchain/agents/mrkl/output_parser.py). The parser runs a backtracking-prone regular expression when extracting tool actions from model output, so an attacker who can supply or influence the parsed text, for example through prompt injection in downstream applications that pass LLM output directly into the parser, can cause excessive CPU consumption and significant parsing delays.
LangChain JS versions of @langchain/core before 0.3.80 and 1.1.8, and of langchain before 0.3.37 and 1.2.3, contain a serialization injection flaw in the toJSON() method and in JSON.stringify() output. The method does not escape objects carrying the internal 'lc' key when serializing free-form kwargs data. User-controlled input containing that key structure is then treated as a legitimate LangChain object during deserialization instead of plain data.
Fix: Fixed in @langchain/core 0.3.80 and 1.1.8, and in langchain 0.3.37 and 1.2.3.
LangChain's dumps() and dumpd() functions do not escape dictionaries containing the 'lc' key when serializing free-form dictionaries. User-controlled data with this key structure is treated as a legitimate LangChain object during deserialization rather than plain data. The issue affects versions prior to 0.3.81 and 1.2.5.
This issue has been patched in versions 0.3.81 and 1.2.5.
CVE-2025-65106 affects LangChain from versions 0.3.79 and prior and 1.0.0 to 1.0.6. A template injection flaw in its prompt template system lets attackers reach Python object internals through template syntax. The issue affects applications that accept untrusted template strings, not just template variables, in ChatPromptTemplate and related prompt template classes.
Fix: This issue has been patched in versions 0.3.80 and 1.0.7.
Prior to langgraph-checkpoint version 3.0, the JsonPlusSerializer used as the default checkpoint serializer contains a remote code execution flaw when deserializing payloads saved in the "json" mode. An attacker who can get the application to persist a crafted payload in that mode can run arbitrary Python code on load, and the fallback to "json" can be triggered when surrogate values make msgpack serialization fail.
Fix: Fixed in langgraph-checkpoint==3.0.0. Upgrade immediately to langgraph-checkpoint==3.0.0. For langgraph-api deployments, any version 0.5 or later is also free of this vulnerability.
A SQL injection flaw in the LangGraph SQLite store implementation in the langchain-ai/langchain repository affects langgraph-checkpoint-sqlite 2.0.10. Filter operators ($eq, $ne, $gt, $lt, $gte, $lte) are concatenated into SQL strings without parameterization, letting attackers inject arbitrary SQL. Successful exploitation grants unauthorized access to all documents, exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.
CVE-2025-6985 affects the HTMLSectionSplitter class in langchain-text-splitters version 0.3.8. The class accepts arbitrary XSLT stylesheets and parses them with lxml.etree.parse() and lxml.etree.XSLT() without hardening, enabling XML External Entity (XXE) attacks. Remote attackers with no authentication, privileges or user interaction could read any file the LangChain process can reach, such as SSH keys, environment files, source code or cloud metadata, in default deployments that enable custom XSLT.
The EverNoteLoader component in langchain-ai/langchain version 0.3.63 is vulnerable to XML External Entity (XXE) attacks. It parses XML with etree.iterparse() without disabling external entity references, so a crafted XML payload that references local files can expose sensitive data such as /etc/passwd.
CVE-2025-46059 describes an indirect prompt injection flaw in the GmailToolkit component of langchain-ai v0.3.51. According to the description, a crafted email message can lead attackers to execute arbitrary code and compromise the application. The supplier disputes the entry, stating that the code-execution issue comes from user-written code that does not follow LangChain security practices.
CVE-2025-2828 is a Server-Side Request Forgery (SSRF) flaw in the RequestsToolkit component of the langchain-community package (langchain_community.agent_toolkits.openapi.toolkit.RequestsToolkit) in langchain-ai/langchain version 0.0.27. The toolkit does not restrict requests to local addresses, so an attacker could port scan, reach local services, retrieve cloud instance metadata (such as Azure and AWS), and interact with servers on the local network.
Fix: Fixed in version 0.0.28.
Multiple vector store integrations in run-llama/llama_index version v0.12.21 contain SQL injection vulnerabilities. An attacker can read and write data using SQL, which may expose the data of other users depending on how the llama-index library is used in a web application.
A vulnerability in langchain-core versions >=0.1.17,<0.1.53, >=0.2.0,<0.2.43, and >=0.3.0,<0.3.15 lets unauthorized users read arbitrary files from the host file system. The flaw lies in langchain_core.prompts.ImagePromptTemplate, and by extension ChatPromptTemplate, which can be created with input variables that read any user-specified server path. If the prompt template outputs are exposed to the user, directly or through downstream model outputs, sensitive information can leak.
CVE-2024-8309 affects the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5. Attackers can use prompt injection to trigger SQL injection, allowing them to create, update, or delete nodes and relationships without authorization, extract sensitive data, and disrupt service. The flaw can also reach data across tenants in multi-tenant environments and compromise database integrity.
CVE-2024-7774 is a path traversal flaw in the getFullPath method of langchain-ai/langchainjs version 0.2.5. The setFileContent, getParsedFile, and mdelete methods do not sanitize user input, letting attackers write files anywhere on the filesystem, overwrite existing text files, read .txt files, and delete files.
Fix: The source links a patch: commit a0fad77d6b569e5872bd4a9d33be0c0785e538a9 in the langchain-ai/langchainjs repository on GitHub. It does not state a fixed version or a configuration workaround.
CVE-2024-7042 affects the GraphCypherQAChain class in langchain-ai/langchainjs, in version 0.2.5 and all versions containing this class. Prompt injection in the class leads to SQL injection, allowing an attacker to create, update, or delete nodes and relationships without authorization, extract sensitive data, and cause denial of service by deleting all data. The flaw also enables access across tenants in multi-tenant environments and damages database integrity.
CVE-2024-46946 affects langchain_experimental (LangChain Experimental) versions 0.1.17 through 0.3.0. The flaw lies in LLMSymbolicMathChain, which passes input to sympy.sympify, which uses eval, allowing attackers to execute arbitrary code. The chain was introduced on 2023-10-05, and NVD has not yet provided an assessment.
Fix: Release notes for langchain-experimental==0.3.0 are referenced in the source, but the source does not state the fix or a workaround in its text.
CVE-2024-5998 affects the FAISS.deserialize_from_bytes function in langchain-ai/langchain, which allows pickle deserialization of untrusted data. The issue affects the latest version of the product, and it can lead to the execution of arbitrary commands via the os.system function. The weakness is classified as CWE-502, Deserialization of Untrusted Data.
Fix: The source links a patch in the langchain-ai/langchain commit 604dfe2d99246b0c09f047c604f0c63eafba31e7, but it does not state a fixed version or a configuration change.
Versions of the langchain-experimental package from 0.0.15 before 0.0.21 contain CVE-2024-21513, an arbitrary code execution flaw. When retrieving values from the database, the package calls 'eval' on all values. An attacker who controls the input prompt can run arbitrary Python code on servers configured with VectorSQLDatabaseChain.
CVE-2024-38459 affects langchain_experimental (LangChain Experimental) before 0.0.61. The package provides Python REPL access without an opt-in step, and the issue exists because of an incomplete fix for CVE-2024-27444. The weakness is classified as CWE-276, Incorrect Default Permissions.
Fix: Patch: https://github.com/langchain-ai/langchain/compare/langchain-experimental==0.0.60...langchain-experimental==0.0.61 (fixed in langchain_experimental 0.0.61, per the linked patch comparison).