SCA: security update for langchain (GHSA-h9j7-5xvc-qhg5)

high Tenable Self-Hosted Container Security Plugin ID 415618

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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/bf0b3cc0b5ade1fb95
a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51
Resolved in https://github.com/langchain-ai/langchain/pull/15559 (CVE-2024-0243)

Solution

Update the langchain library and its related packages to version 0.1.0 or later.

See Also

https://github.com/advisories/GHSA-h9j7-5xvc-qhg5

Plugin Details

Severity: High

ID: 415618

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.58

Vendor

Vendor Severity: Low

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 6

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

CVSS Score Source: CVE-2024-0243

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.3

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/26/2024

Vulnerability Publication Date: 2/24/2024

Reference Information

CVE: CVE-2024-0243

cwe: CWE-918