SCA: security update for langchain, langchain-community (GHSA-3hjh-jh2h-vrg6)

medium Tenable Self-Hosted Container Security Plugin ID 421382

Description

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

- 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. (CVE-2024-2965)

See Also

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

Plugin Details

Severity: Medium

ID: 421382

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 3/28/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Low

Base Score: 3.8

Temporal Score: 3

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

CVSS Score Source: CVE-2024-2965

CVSS v3

Risk Factor: Medium

Base Score: 4.7

Temporal Score: 4.2

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/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: 6/6/2024

Vulnerability Publication Date: 6/6/2024

Reference Information

CVE: CVE-2024-2965