CVE-2025-2828 — Vulnerability in langchain-community — CVE Details
CRITICAL
Published June 23, 2025Updated June 10, 2026Source: osv
Summary
A Server-Side Request Forgery (SSRF) vulnerability exists in the RequestsToolkit component of the langchain-community package (specifically, langchain_community.agent_toolkits.openapi.toolkit.RequestsToolkit) in langchain-ai/langchain version 0.0.27. This vulnerability occurs because the toolkit does not enforce restrictions on requests to remote internet addresses, allowing it to also access local addresses. As a result, an attacker could exploit this flaw to perform port scans, access local services, retrieve instance metadata from cloud environments (e.g., Azure, AWS), and interact with servers on the local network. This issue has been fixed in version 0.0.28.
Advisory Timeline
- First published June 23, 2025 (476 days ago).
- Last revised June 10, 2026 — 352 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip
Update langchain-community to e188d4ecb085d4561a0be3c583d26aa9c2c3283f or laterpip install "langchain-community>=e188d4ecb085d4561a0be3c583d26aa9c2c3283f"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| langchain-community | pypi | 0.0.1, 0.0.10, 0.0.11, 0.0.12 (+342 more) | e188d4ecb085d4561a0be3c583d26aa9c2c3283f, 0.0.28 |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2025-2828?
- This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2025-2828?
- CVE-2025-2828 affects langchain-community. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-2828 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
10.0
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
PYSEC-2025-70
GHSA-h5gc-rm8j-5gpr
Related CVEs
- CVE-2026-61447CRITICAL
PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets
- CVE-2026-61445CRITICAL
PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies