Skip to content

huntr

langchain-ai/langchain

Every publicly disclosed report for langchain-ai/langchain and what kind of bugs they were.

disclosed reports
10
most reported class
SSRF
bug classes found
6
first disclosure
2024
Find langchain-ai/langchain on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what langchain-ai/langchain chose to make public.

SSRF

LangChain Community SSRF vulnerability exists in RequestsToolkit component

The RequestsToolkit in langchain-community did not restrict requests to remote internet addresses, allowing access to local addresses. An attacker could use this to perform port scans, access local services, retrieve cloud instance metadata, and interact with local network servers.

langchain-ai/langchain

High
SQL injection

Langchain SQL Injection vulnerability

The GraphCypherQAChain class in langchain-ai/langchain version 0.2.5 is vulnerable to SQL injection through prompt injection. An attacker could manipulate, exfiltrate, or delete data, breach multi-tenant isolation, and compromise database integrity.

langchain-ai/langchain

Low
RCE

LangChain pickle deserialization of untrusted data

The FAISS.deserialize_from_bytes function in LangChain deserialises untrusted data using pickle, which can lead to arbitrary command execution. An attacker could exploit this to run commands via os.system.

langchain-ai/langchain

High
DoS

Denial of service in langchain-community

The SitemapLoader's parse_sitemap method in langchain-community versions below 0.2.5 lacks protection against infinite recursion when a sitemap URL refers to itself. An attacker could cause a denial of service by triggering an infinite loop that crashes the Python process.

langchain-ai/langchain

Medium
Path traversal

langchain vulnerable to path traversal

The LocalFileStore in langchain-ai/langchain does not properly restrict file paths, allowing directory traversal sequences to reach unintended directories. An attacker could read or write files anywhere on the filesystem, potentially leading to information disclosure or remote code execution.

langchain-ai/langchain

Medium
DoS

LangChain's XMLOutputParser vulnerable to XML Entity Expansion

The XMLOutputParser in LangChain uses Python's standard XML parser, which is vulnerable to XML entity expansion. An attacker could manipulate an LLM to produce a malicious payload that compromises the availability of a web service.

langchain-ai/langchain

Medium
SSRF

langchain Server-Side Request Forgery vulnerability

The RecursiveUrlLoader in langchain did not properly enforce the prevent_outside=True option, allowing a malicious page to link to external URLs that the crawler would still download. An attacker controlling the initial page could cause the crawler to fetch arbitrary external resources.

langchain-ai/langchain

Low