CVE-2024-3095Langchain
High 7.7
Follow: this CVE · Langchain · Langchain We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 3.1
- 7.7
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 51
- Auth required
- Yes
- Published
- Jun 6, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
What happens
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
- Apply the vendor's security update for Langchain.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langchain-community |
< 0.2.9 |
0.2.9 |
pip install "langchain-community>=0.2.9" |
| PyPI | langchain-community |
< 0.2.9 |
0.2.9 |
pip install "langchain-community>=0.2.9" |
Per OSV / GitHub Advisories (GHSA-q25c-c977-4cmh, PYSEC-2026-1516). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langchain | langchain | ≥ 0.1.5 < 0.2.9 |
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Third Party Advisory