LangChain < 0.1.0 SSRF

low Nessus Plugin ID 213562

Synopsis

The remote host is affected by a vulnerability.

Description

The version of LangChain installed on the remote host is prior to 0.1.0. It is, therefore, affected by a SSRF vulnerability. 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`.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to LangChain version 0.1.0 or later.

See Also

https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861

https://github.com/langchain-ai/langchain/pull/15559

http://www.nessus.org/u?211fc357

Plugin Details

Severity: Low

ID: 213562

File Name: langchain_CVE-2024-0243.nasl

Version: 1.1

Type: local

Published: 1/8/2025

Updated: 1/8/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.0

CVSS v2

Risk Factor: Low

Base Score: 2.4

Vector: CVSS2#AV:L/AC:H/Au:S/C:P/I:P/A:N

CVSS Score Source: CVE-2024-0243

CVSS v3

Risk Factor: Low

Base Score: 3.7

Vector: CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N

Vulnerability Information

CPE: cpe:/a:langchain:langchain

Required KB Items: installed_sw/LangChain

Patch Publication Date: 2/26/2024

Vulnerability Publication Date: 2/26/2024

Reference Information

CVE: CVE-2024-0243

CWE: CWE-918