PatchSiren

langchain-ai CVE debriefs

These pages are published after PatchSiren validates generated defensive summaries against stored public CVE and source evidence.

MEDIUM langchain-ai CVE published 2026-10-23

CVE-2026-115883

CVE-2026-115883 LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite stores. The vulnerability allows unauthorized access or modification of data due to improper handling of namespace labels containing `.`. This occurs because the Postgres and SQLite stores save a namespace as its labels joined with `.`, causing labels with `.` to resolve to different namespaces. The `put` method rejected labels containing `.`, but other methods like `get`, `search`, `delete`, and `list_namespaces` did not. This could allow a caller to read, overwrite, or delete items in another namespace. Defenders should verify exposure, prioritize updates to fixed versions 3.1

HIGH langchain-ai CVE published 2026-10-05

CVE-2026-104873

CVE-2026-104873 LangGraph SDK custom auth silently ignores actions= on resource decorators. The vulnerability affects Python deployments using langgraph-sdk with resource-scoped authorization decorators. An authenticated user may perform actions the application intended to deny due to incorrect application of actions= argument. Deployments remain protected if the handler independently enforces necessary checks. The patch version is 0.4.4. Review and apply the patch, verify deployments, and implement additional authorization checks if necessary.

HIGH langchain-ai CVE published 2026-08-20

CVE-2026-72848

The SitemapLoader.parse_sitemap function in langchain_community/document_loaders/sitemap.py is vulnerable to server-side request forgery (SSRF) attacks due to inadequate application of the restrict_to_same_domain control to nested sitemap elements. This oversight allows an attacker to manipulate the sitemap, causing the server to fetch and potentially disclose internal content. Developers and administrators using Langchain Community library should review and update the SitemapLoader.parse_sitemap function to apply restrict_to_same_domain control to all URL elements, including nested sitemap entries, and implement additional validation and filtering for sitemap entries to prevent SSRF attacks.

MEDIUM langchain-ai CVE published 2026-08-06

CVE-2026-71433

CVE-2026-71433 LangGraph Checkpoint vulnerability allows unauthorized data access. LangGraph Checkpoint Postgres and SQLite implementations prior to version 3.1.1 improperly handled namespace scoping, permitting authenticated callers to retrieve data from other tenants or users via scoped searches or namespace listing. The vulnerability impacts data confidentiality and requires verification of patched versions and restricted access to sensitive data. This issue is fixed in versions 3.1.1 of langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite.

MEDIUM langchain-ai CVE published 2026-08-04

CVE-2026-48121

CVE-2026-48121 debrief based on the supplied source corpus. The CVE record was published on 2026-08-04T17:16:55.267Z. The @langchain/langgraph-checkpoint-mongodb package versions 1.3.0 and below are vulnerable to NoSQL injection due to lack of type enforcement on checkpoint identifiers passed into MongoDB find() queries. This could lead to potential leakage of checkpoints and bypassing of thread scoping. Defenders of applications using @langchain/langgraph-checkpoint-mongodb versions 1.3.0 and below, especially in multi-tenant or user-isolated setups, should assess exposure and prioritize verification and remediation.

MEDIUM langchain-ai CVE published 2026-07-06

CVE-2026-59152

The LangSmith Client SDKs provide software development kits for interacting with the LangSmith platform. Prior to version 0.8.18, an attacker who can send an HTTP request to a server running the LangSmith SDK's TracingMiddleware can cause that server to read an arbitrary file from its local filesystem and upload the contents to LangSmith as a trace attachment. Depending on how the distributed trace system is deployed, triggering a read may not require authentication. Retrieving the contents requires read access to the LangSmith workspace the traces are sent to. The net effect is a trust-boundary crossing: a party with workspace trace-read access gains the ability to read files from any server running TracingMiddleware, a capability outside that workspace's intended trust boundary. This vulnerability is fixed in version 0.8.18.

MEDIUM langchain-ai CVE published 2026-06-22

CVE-2026-55443

CVE-2026-55443 is a medium-severity vulnerability in LangChain, a framework for building agents and LLM-powered applications. The vulnerability allows for path traversal attacks, potentially leading to disclosure of files outside the intended boundary. The issue was fixed in version 1.3.9. LangChain components that resolve filesystem paths or expand search patterns did not consistently confine the resolved path to the intended root directory, allowing attackers to access files outside the configured root using glob patterns and symlinks. This vulnerability is particularly concerning when these components receive path values, search patterns, or workspace contents influenced by an untrusted source, such as an LLM acting on untrusted input.

MEDIUM langchain-ai CVE published 2026-06-17

CVE-2026-48776

The LangGraph Python SDK, used to connect to LangGraph API servers and manage assistants, threads, and stream runs, has a vulnerability in versions 0.3.14 and prior. The issue arises from unsafe URL path construction through unsanitized caller-supplied identifier values used in HTTP request paths for resource operations. This could lead to unintended access, modification, or deletion of resources beyond the calling user's authorization scope, particularly in deployments where end-user-supplied values are directly forwarded into SDK identifier parameters without validation. The vulnerability has been fixed in version 0.3.15.

MEDIUM langchain-ai CVE published 2026-06-16

CVE-2026-48775

CVE-2026-48775 is a defense-in-depth issue in LangGraph SQLite Checkpoint's JsonPlusSerializer. In versions 4.1.0 and prior, the JsonPlusSerializer can reconstruct Python objects from JSON checkpoint payloads. Under conditions where someone could modify checkpoint bytes at rest in the backing store, the deserialization path could reconstruct objects beyond what the application expects, which could in turn result in code execution at checkpoint load time. This issue has been fixed in version 4.1.1.

HIGH langchain-ai CVE published 2026-05-27

CVE-2026-45134

LangSmith Client SDKs prior to Python 0.8.0 and JS/TS 0.6.0 fail to distinguish between prompts owned by the caller's organization and public prompts owned by external parties when using prompt pull methods (pull_prompt/pull_prompt_commit in Python; pullPrompt/pullPromptCommit in JS/TS). These methods fetch and deserialize prompt manifests from the LangSmith Hub, which may contain serialized LangChain objects and model configuration that affect runtime behavior. Because public prompt manifests are controlled by external parties, this creates a deserialization trust boundary violation where untrusted content is processed with the same privileges as internal organizational prompts. The vulnerability is classified as CWE-502 (Deserialization of Untrusted Data) with a CVSS 3.1 score of 7.1 (HIGH). The issue was published on 2026-05-27.

HIGH langchain-ai CVE published 2026-05-26

CVE-2026-44843

LangChain versions prior to 0.3.85 and 1.3.3 contain overly permissive deserialization paths that allow instantiation of trusted LangChain-serializable classes with attacker-controlled constructor arguments. The vulnerability stems from runtime code paths that deserialize run inputs, run outputs, or application-controlled payloads using broad object allowlists, including configurations where `allowed_objects` is set to `all`. While this does not permit arbitrary Python object deserialization, it enables attackers to supply malicious serialized constructor dictionaries that trusted runtime paths will instantiate, potentially leading to code execution or other security impacts. The CVSS 3.1 score of 8.2 (HIGH) reflects network attack vector, low attack complexity, no required privileges, and no user interaction, with high confidentiality impact and low integrity impact. The vulnerability is classified under CWE-502 (Deserialization of Untrusted Data). Fixes are available in LangChain versions 0.3.85 and 1.3.3.

MEDIUM langchain-ai CVE published 2026-04-24

CVE-2026-41481

CVE-2026-41481 is a Server-Side Request Forgery (SSRF) vulnerability in LangChain Text Splitters prior to version 1.1.2. The vulnerability arises from the `HTMLHeaderTextSplitter.split_text_from_url()` function, which validates the initial URL but then performs the fetch with redirects enabled. This allows an attacker-controlled server to redirect to internal, localhost, or cloud metadata endpoints, potentially bypassing SSRF protections. The response body is parsed and returned as Document objects to the calling application code. The impact depends on the application: if it exposes Document contents back to the requester, sensitive data from internal endpoints could be leaked. Applications that store or process Documents internally without returning raw content to the requester are not directly exposed. This vulnerability is fixed in version 1.1.2.

MEDIUM langchain-ai CVE published 2026-04-23

CVE-2026-41182

LangSmith Client SDKs for JavaScript (prior to 0.5.19) and Python (prior to 0.7.31) fail to apply output redaction controls to streaming token events. The hideOutputs (JS) and hide_outputs (Python) settings only process inputs and outputs fields on a run object, not the events array where streaming chunks are recorded as new_token events. This causes sensitive LLM output to leak via run events even when redaction is enabled.

MEDIUM langchain-ai CVE published 2026-04-10

CVE-2026-40190

CVE-2026-40190 LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to 0.5.18, the LangSmith JavaScript/TypeScript SDK (langsmith) contains an incomplete prototype pollution fix in its internally vendored lodash set() utility. The baseAssignValue() function only guards against the __proto__ key, but fails to prevent traversal via constructor.prototype. This allows an attacker who controls keys in data processed by the createAnonymizer() API to pollute Object.prototype, affecting all objects in the Node.js process. This vulnerability is fixed in 0.5.18.

HIGH langchain-ai CVE published 2026-03-31

CVE-2026-34070

LangChain Core versions prior to 1.2.22 contain a path traversal vulnerability in prompt loading functions. Multiple functions in `langchain_core.prompts.loading` read files from paths embedded in deserialized configuration dictionaries without validating against directory traversal sequences or absolute path injection. When an application passes user-influenced prompt configurations to `load_prompt()` or `load_prompt_from_config()`, an attacker can read arbitrary files on the host filesystem. File-extension checks exist but are insufficient: `.txt` for templates and `.json`/`.yaml` for examples do not prevent traversal outside intended directories. The vulnerability was published on 2026-03-31 and last modified on 2026-06-01. It is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) with a CVSS 3.1 score of 7.5 (HIGH severity). The issue has been patched in langchain-core version 1.2.22. No known exploitation in ransomware campaigns has been documented.

HIGH LangChain AI CVE published 2026-01-12

CVE-2024-58340

LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the MRKLOutputParser.parse() method. The parser applies a backtracking-prone regular expression when extracting tool actions from model output. An attacker who can supply or influence the parsed text can trigger excessive CPU consumption by providing a crafted payload, causing significant parsing delays and a denial-of-service condition. This vulnerability can be mitigated by updating LangChain to a version that fixes the vulnerability, implementing input validation and sanitization, and monitoring for suspicious activity.