-
Notifications
You must be signed in to change notification settings - Fork 22
langchain-0.0.350-py3-none-any.whl: 9 vulnerabilities (highest severity is: 9.8) #54
Description
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Vulnerabilities
| Vulnerability | Severity | Dependency | Type | Fixed in (langchain version) | Remediation Possible** | |
|---|---|---|---|---|---|---|
| CVE-2024-27444 | 9.8 | langchain-0.0.350-py3-none-any.whl | Direct | 0.1.8 | ❌ | |
| CVE-2024-28088 | 8.1 | langchain-0.0.350-py3-none-any.whl | Direct | 0.1.12 | ❌ | |
| CVE-2024-0243 | 8.1 | langchain-0.0.350-py3-none-any.whl | Direct | 0.1.0 | ❌ | |
| CVE-2024-3095 | 7.7 | langchain-0.0.350-py3-none-any.whl | Direct | 0.1.6 | ❌ | |
| CVE-2024-58340 | 7.5 | langchain-0.0.350-py3-none-any.whl | Direct | https://github.com/langchain-ai/langchain.git - langchain-classic==1.0.2,langchain-classic - 1.0.2 | ❌ | |
| CVE-2024-3571 | 6.5 | langchain-0.0.350-py3-none-any.whl | Direct | 0.0.353 | ❌ | |
| CVE-2024-2057 | 6.3 | langchain-0.0.350-py3-none-any.whl | Direct | 0.1.12 | ❌ | |
| CVE-2024-7042 | 4.9 | langchain-0.0.350-py3-none-any.whl | Direct | @langchain/community - 0.3.3 | ❌ | |
| CVE-2024-2965 | 4.2 | langchain-0.0.350-py3-none-any.whl | Direct | 0.2.5 | ❌ |
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2024-27444
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
langchain_experimental (aka LangChain Experimental) in LangChain before 0.1.8 allows an attacker to bypass the CVE-2023-44467 fix and execute arbitrary code via the import, subclasses, builtins, globals, getattribute, bases, mro, or base attribute in Python code. These are not prohibited by pal_chain/base.py.
Mend Note: The description of this vulnerability differs from MITRE.
Publish Date: 2024-02-26
URL: CVE-2024-27444
CVSS 3 Score Details (9.8)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: https://www.cve.org/CVERecord?id=CVE-2024-27444
Release Date: 2024-02-26
Fix Resolution: 0.1.8
Step up your Open Source Security Game with Mend here
CVE-2024-28088
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
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. (A patch is available as of release 0.1.29 of langchain-core.)
Publish Date: 2024-03-03
URL: CVE-2024-28088
CVSS 3 Score Details (8.1)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: None
Suggested Fix
Type: Upgrade version
Release Date: 2024-03-03
Fix Resolution: 0.1.12
Step up your Open Source Security Game with Mend here
CVE-2024-0243
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
With the following crawler configuration:
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.
Resolved in langchain-ai/langchain#15559
Publish Date: 2024-02-24
URL: CVE-2024-0243
CVSS 3 Score Details (8.1)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: High
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Release Date: 2024-02-24
Fix Resolution: 0.1.0
Step up your Open Source Security Game with Mend here
CVE-2024-3095
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
A Server-Side Request Forgery (SSRF) vulnerability exists in the Web Research Retriever component of langchain-ai/langchain version 0.1.5. The vulnerability arises because the Web Research Retriever does not restrict requests to remote internet addresses, allowing it to reach local addresses. This flaw enables attackers to execute port scans, access local services, and in some scenarios, read instance metadata from cloud environments. The vulnerability is particularly concerning as it can be exploited to abuse the Web Explorer server as a proxy for web attacks on third parties and interact with servers in the local network, including reading their response data. This could potentially lead to arbitrary code execution, depending on the nature of the local services. The vulnerability is limited to GET requests, as POST requests are not possible, but the impact on confidentiality, integrity, and availability is significant due to the potential for stolen credentials and state-changing interactions with internal APIs.
Publish Date: 2024-06-06
URL: CVE-2024-3095
CVSS 3 Score Details (7.7)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Changed
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: None
- Availability Impact: None
Suggested Fix
Type: Upgrade version
Origin: GHSA-q25c-c977-4cmh
Release Date: 2024-06-06
Fix Resolution: 0.1.6
Step up your Open Source Security Game with Mend here
CVE-2024-58340
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
LangChain contain a regular expression denial-of-service (ReDoS) vulnerability in the MRKLOutputParser.parse() method (libs/langchain/langchain/agents/mrkl/output_parser.py). 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 (for example via prompt injection in downstream applications that pass LLM output directly into MRKLOutputParser.parse()) can trigger excessive CPU consumption by providing a crafted payload, causing significant parsing delays and a denial-of-service condition.
Mend Note: The description of this vulnerability differs from MITRE.
Publish Date: 2026-01-12
URL: CVE-2024-58340
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Release Date: 2026-01-12
Fix Resolution: https://github.com/langchain-ai/langchain.git - langchain-classic==1.0.2,langchain-classic - 1.0.2
Step up your Open Source Security Game with Mend here
CVE-2024-3571
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
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.
Publish Date: 2024-04-16
URL: CVE-2024-3571
CVSS 3 Score Details (6.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: None
- Availability Impact: None
Suggested Fix
Type: Upgrade version
Origin: https://www.cve.org/CVERecord?id=CVE-2024-3571
Release Date: 2024-04-16
Fix Resolution: 0.0.353
Step up your Open Source Security Game with Mend here
CVE-2024-2057
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.0.27 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-255372.
Publish Date: 2024-03-01
URL: CVE-2024-2057
CVSS 3 Score Details (6.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: Low
Suggested Fix
Type: Upgrade version
Release Date: 2024-03-01
Fix Resolution: 0.1.12
Step up your Open Source Security Game with Mend here
CVE-2024-7042
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injection, leading to SQL injection. This vulnerability permits 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.
Publish Date: 2024-10-29
URL: CVE-2024-7042
CVSS 3 Score Details (4.9)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Local
- Attack Complexity: High
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: Low
Suggested Fix
Type: Upgrade version
Origin: GHSA-6m59-8fmv-m5f9
Release Date: 2024-10-29
Fix Resolution: @langchain/community - 0.3.3
Step up your Open Source Security Game with Mend here
CVE-2024-2965
Vulnerable Library - langchain-0.0.350-py3-none-any.whl
Building applications with LLMs through composability
Library home page: https://files.pythonhosted.org/packages/72/e1/5b6da1b7feba08791e6351c323b0a6f6f4c0d553bc2fd9a9d8c4872373df/langchain-0.0.350-py3-none-any.whl
Path to dependency file: /ai/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20260331025725_MIUFBE/python_UVEQHS/20260331025831/4/langchain-0.0.350-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain-0.0.350-py3-none-any.whl (Vulnerable Library)
Found in HEAD commit: 0f1cc4f79fdab9e4d90aa9caf963ea2e271c0183
Found in base branch: main
Vulnerability Details
A Denial-of-Service (DoS) vulnerability exists in the SitemapLoader class of the langchain-ai/langchain repository, affecting all versions. 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.
Publish Date: 2024-06-06
URL: CVE-2024-2965
CVSS 3 Score Details (4.2)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Physical
- Attack Complexity: High
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: GHSA-3hjh-jh2h-vrg6
Release Date: 2024-06-06
Fix Resolution: 0.2.5
Step up your Open Source Security Game with Mend here