Search
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
136 items
The LangSmith SDK's distributed tracing feature is vulnerable to server-side request forgery through the baggage header. Before the fix, RunTree.from_headers() in Python and RunTree.fromHeaders() in TypeScript accepted attacker-supplied api_url and api_key values from baggage, and post() and patch() then sent run data, including LLM inputs and outputs, to those URLs.
Fix: Python: pip install langsmith>=0.6.3. JavaScript: npm install langsmith@>=0.4.6. The fix filters replica configurations to an allowlist of safe fields.
GitHub Advisory DatabaseLangChain released langchain 1.2.9 as a changelog since 1.2.8. The changes include fixes for normalizing raw schemas in the middleware response_format override, avoiding an UnboundLocalError when no AIMessage exists, and using usage metadata scaling in the SummarizationMiddleware default token counter, which was later reverted. New features include support for state updates from wrap_model_call with command(s) and threading context through create_agent flows and middleware.
langchain-core 1.2.9 is released, with changes since 1.2.8. The changes include fixes to approximate token counting, which now apply a cap when scaling by reported usage, and several build, typing and test maintenance commits.
LangChain released langchain==1.2.8 on GitHub, with changes since 1.2.7. The notable changes include a fix that reuses ToolStrategy in the agent factory to prevent a name mismatch, an upgrade of urllib3 to 2.6.3, and the addition of ToolCallRequest to middleware exports.
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.
LangGraph SQLite Checkpoint, an implementation of LangGraph CheckpointSaver backed by SQLite (sync and async via aiosqlite), is vulnerable to SQL injection in versions 3.0.0 and below. The _metadata_predicate() function interpolates metadata filter keys directly into f-strings without validation, so applications that accept untrusted filter keys in checkpoint search operations are exposed.
Fix: Fixed in version 3.0.1.
NVD/CVE DatabaseCVE-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.
LangGraph SQLite Checkpoint, the SQLite-backed implementation of LangGraph's CheckpointSaver (sync and async via aiosqlite), contains SQL injection flaws in versions prior to 2.0.11. The SQLite store builds queries by direct string concatenation without proper parameterization, letting an attacker inject arbitrary SQL and bypass access controls.
Fix: Fixed in 2.0.11.
NVD/CVE DatabaseA 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.
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.
Fix: Fixed in version 0.0.28.
NVD/CVE Database