# Denial of service in langchain-community

Advisory record · `GHSA-3hjh-jh2h-vrg6`

- **Identifiers:** `GHSA-3hjh-jh2h-vrg6` · `CVE-2024-2965` · `PYSEC-2024-118` · `PYSEC-2026-2561`
- **State:** Confirmed
- **Severity:** CVSS 4.2 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html) · [CWE-674](https://cwe.mitre.org/data/definitions/674.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 6 Jun 2024
- **Updated:** 13 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Jun 2024, 21:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `langchain-community` (PyPI): affected `<0.2.5`; fixed in `0.2.5`
- `langchain` (PyPI): affected `<0.2.5`; fixed in `0.2.5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Versions of langchain-community below 0.2.5 are vulnerable to a denial of service in the SitemapLoader document loader. The parse_sitemap method has no guard against a sitemap that refers back to itself, which causes infinite recursion and a crash of the Python process. The source does not state what access an attacker needs. Upgrade langchain-community to 0.2.5 or later; langchain is also listed as fixed in 0.2.5.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.2 Medium, CVSS 3.0: `CVSS:3.0/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`, from CNA (@huntr_ai)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0030, the 23rd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:01 UTC: First seen by agentprime
- 31 Oct 2026, 15:01 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-3hjh-jh2h-vrg6)

## Sources

- [GitHub Advisory Database: GHSA-3hjh-jh2h-vrg6](https://github.com/advisories/GHSA-3hjh-jh2h-vrg6)
- [OSV: GHSA-3hjh-jh2h-vrg6](https://osv.dev/vulnerability/GHSA-3hjh-jh2h-vrg6)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-2965>
- <https://github.com/langchain-ai/langchain/pull/22903>
- <https://github.com/langchain-ai/langchain/commit/73c42306745b0831aa6fe7fe4eeb70d2c2d87a82>
- <https://github.com/langchain-ai/langchain/commit/9a877c7adbd06f90a2518152f65b562bd90487cc>
- <https://github.com/langchain-ai/langchain>
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-118.yaml>
- <https://huntr.com/bounties/90b0776d-9fa6-4841-aac4-09fde5918cae>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-3hjh-jh2h-vrg6>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3hjh-jh2h-vrg6/>. Everything for agents: <https://agentprime.io/llms.txt>.
