Patrowl Intel
Sign in
Skip to the CVEs

Filter by signal

21 langchain CVEs, newest first

  1. 7.1 RemoteLangsmith Langsmith, Langchain Langchain +1May 27, 2026

    LangSmith 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 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 model configuration that affect runtime behavior. When pulling a public prompt by owner/name identifier, the manifest content is controlled by an external party, but prior versions of the SDK did not distinguish this from pulling a prompt within the caller's own organization. This vulnerability is fixed in LangSmith SDK Python 0.8.0 and JS/TS 0.6.0.

    Affected: from the first version, < 0.3.30

  2. 4.9 1 exploit EPSS 14 %Langchain Langchain, Langchain-Community Langchain-CommunityOct 29, 2024

    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 in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.

    Affected: from the first version, < 0.2.0

  3. 4.2 1 exploitLangchain Langchain, Langchain-Community Langchain-CommunityJun 6, 2024

    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 refers to the current sitemap itself. This oversight allows for the possibility of an infinite loop, leading to a crash by exceeding the maximum recursion depth in Python. This vulnerability can be exploited to occupy server socket/port resources and crash the Python process, impacting the availability of services relying on this functionality.

    Affected: from the first version, < 0.2.5

  4. 6.5 1 exploit EPSS 1.9 % RemoteLangchain LangchainApr 16, 2024

    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, potentially leading to information disclosure or remote code execution. The issue lies in the handling of file paths in the mset and mget methods, where user-supplied input is not adequately sanitized, allowing directory traversal sequences to reach unintended directories.

    Affected: from the first version, < 0.0.353

  5. — 2 exploits EPSS 1.7 %Langchain Langchain, Langchain-Core Langchain-CoreMar 4, 2024

    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 outcome can be disclosure of an API key for a large language model online service, or remote code execution.

    Affected: from the first version, < 0.0.339

  6. 3.7 1 exploitLangchain LangchainFeb 26, 2024

    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 the contents of `https://example.com` could place a malicious HTML file in there with links like "https://example.completely.different/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51 Resolved in https://github.com/langchain-ai/langchain/pull/15559

    Affected: from the first version, < 0.1.0

  7. 7.5 RemoteLangchain LangchainOct 21, 2023

    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.

    Affected: from the first version, < 0.0.329

  8. 9.8 RemoteLangchain LangchainOct 21, 2023

    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.

    Affected: from the first version, < 0.0.247

  9. 8.8 EPSS 43 % RemoteLangchain LangchainOct 19, 2023

    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.

    Affected: from the first version, < 0.0.317

  10. 9.8 2 exploits EPSS 1.6 % RemoteLangchain Langchain, Numexpr NumexprSep 1, 2023

    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.

    Affected: from the first version, < 0.0.308