Denial of servicein LangChain AI LangChain.
Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).
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.
- Upgrade langchain-ai/langchain to 0.2.5 or later.
- Upgrade langchain-community (PyPI) to 0.2.5 or later.
- Upgrade langchain (PyPI) to 0.2.5 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 26 Mar 2024CVE ID reserved by @huntr_ai.
- 6 Jun 2024Published in the CVE List.
- 15 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other LangChain vulnerabilities
Same weakness: Uncontrolled recursion
Patchminder. CVE-2024-2965: Denial of service in LangChain AI LangChain. https://patchminder.com/cve/cve-2024-2965/ (accessed 5 December 2026).