Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2024-2965
Published:June 06, 2024
Updated:June 18, 2026
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.
Affected Packages
langchain (CONDA):
Affected version(s) >=0.0.136 <0.2.5
Fix Suggestion:
Update to version 0.2.5
langchain-community (CONDA):
Affected version(s) >=0.0.2 <0.2.5
Fix Suggestion:
Update to version 0.2.5
langchain (PYTHON):
Affected version(s) >=0.0.1 <0.2.5
Fix Suggestion:
Update to version 0.2.5
langchain-community (PYTHON):
Affected version(s) >=0.0.1rc1 <0.2.5
Fix Suggestion:
Update to version 0.2.5
Do you need more information?
Contact Us
CVSS v4
Base Score:
4.1
Attack Vector
PHYSICAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.2
Attack Vector
PHYSICAL
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Resource Consumption
Uncontrolled Recursion
EPSS
Base Score:
0.30