nataliekenat / Python_117190

0 stars 0 forks source link

langchain-0.0.198-py3-none-any.whl: 16 vulnerabilities (highest severity is: 9.8) #2

Open mend-for-github-com[bot] opened 1 year ago

mend-for-github-com[bot] commented 1 year ago
Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (langchain version) Remediation Possible**
CVE-2024-27444 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct 0.1.8
CVE-2023-39659 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct 0.0.325
CVE-2023-39631 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct 0.0.308
CVE-2023-38860 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct 0.0.232
CVE-2023-36281 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct 0.0.312
CVE-2023-36258 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct 0.0.200
CVE-2023-36095 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct 0.0.236
CVE-2023-34541 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct N/A
CVE-2023-34540 Critical 9.8 langchain-0.0.198-py3-none-any.whl Direct N/A
CVE-2024-28088 High 8.1 langchain-0.0.198-py3-none-any.whl Direct 0.1.12
CVE-2024-3095 High 7.7 langchain-0.0.198-py3-none-any.whl Direct 0.1.6
CVE-2023-36189 High 7.5 langchain-0.0.198-py3-none-any.whl Direct 0.0.266
CVE-2024-3571 Medium 6.5 langchain-0.0.198-py3-none-any.whl Direct 0.0.353
CVE-2024-2057 Medium 6.3 langchain-0.0.198-py3-none-any.whl Direct 0.1.12
CVE-2024-2965 Medium 4.2 langchain-0.0.198-py3-none-any.whl Direct 0.2.5
CVE-2024-0243 Low 3.7 langchain-0.0.198-py3-none-any.whl Direct 0.1.0

**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.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

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.

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

For more information on CVSS3 Scores, click here.

### 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

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-39659 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.

Publish Date: 2023-08-15

URL: CVE-2023-39659

### 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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-prgp-w7vf-ch62

Release Date: 2023-08-15

Fix Resolution: 0.0.325

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-39631 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

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.

Publish Date: 2023-09-01

URL: CVE-2023-39631

### 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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-f73w-4m7g-ch9x

Release Date: 2023-09-01

Fix Resolution: 0.0.308

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-38860 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.

Publish Date: 2023-08-15

URL: CVE-2023-38860

### 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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2023-38860

Release Date: 2023-08-15

Fix Resolution: 0.0.232

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-36281 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to __subclasses__ or a template.

Publish Date: 2023-08-22

URL: CVE-2023-36281

### 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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-7gfq-f96f-g85j

Release Date: 2023-08-22

Fix Resolution: 0.0.312

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-36258 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because Python code with os.system, exec, or eval can be used.

Publish Date: 2023-07-03

URL: CVE-2023-36258

### 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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2023-36258

Release Date: 2023-07-03

Fix Resolution: 0.0.200

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-36095 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.

Publish Date: 2023-08-05

URL: CVE-2023-36095

### 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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2023-36095

Release Date: 2023-08-05

Fix Resolution: 0.0.236

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-34541 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.

Publish Date: 2023-06-20

URL: CVE-2023-34541

### 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

For more information on CVSS3 Scores, click here.

CVE-2023-34540 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

Langchain before v0.0.225 was discovered to contain a remote code execution (RCE) vulnerability in the component JiraAPIWrapper (aka the JIRA API wrapper). This vulnerability allows attackers to execute arbitrary code via crafted input. As noted in the "releases/tag" reference, a fix is available.

Publish Date: 2023-06-14

URL: CVE-2023-34540

### 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

For more information on CVSS3 Scores, click here.

CVE-2024-28088 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2024-03-03

Fix Resolution: 0.1.12

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2024-3095 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2024-3095

Release Date: 2024-06-06

Fix Resolution: 0.1.6

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2023-36189 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.

Publish Date: 2023-07-06

URL: CVE-2023-36189

### 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: High - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2023-36189

Release Date: 2023-07-06

Fix Resolution: 0.0.266

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2024-3571 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

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

For more information on CVSS3 Scores, click here.

### 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

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2024-2057 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2024-03-01

Fix Resolution: 0.1.12

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2024-2965 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-3hjh-jh2h-vrg6

Release Date: 2024-06-06

Fix Resolution: 0.2.5

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2024-0243 ### Vulnerable Library - langchain-0.0.198-py3-none-any.whl

Building applications with LLMs through composability

Library home page: https://files.pythonhosted.org/packages/75/fd/f771d8d2f5c30e7dcf076e0c7ca51e738eeda52ec009a63030b88859af32/langchain-0.0.198-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **langchain-0.0.198-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 7a74fb1544b454fc49e6f326bd0dc6fab348d3e1

Found in base branch: main

### Vulnerability Details

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

Publish Date: 2024-02-24

URL: CVE-2024-0243

### CVSS 3 Score Details (3.7)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: High - Privileges Required: High - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2024-02-24

Fix Resolution: 0.1.0

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.

mend-for-github-com[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 1 year ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

mend-for-github-com[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 1 year ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

mend-for-github-com[bot] commented 5 months ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 5 months ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.