CVE-2025-2828: langchain-ai langchain-ai/langchain Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2025-2828 is a critical (CVSS 10.0) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 21.02% chance of exploitation in the next 30 days, higher than 97.5% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 23-06-2025PublishedVulnerability first disclosed.
- 24-06-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST8.4HighCVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
EPSS trend
Probability
21.02%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
+2.55 pp
From 18.47% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Langchain1 product
- langchain< 0.0.28
Langchain-ai1 product
- langchain-ai/langchain≥ unspecified, < 0.0.28
PyPI1 product
- langchain-community< e188d4ecb085d4561a0be3c583d26aa9c2c3283f | < 0.0.28
3 vendors · 3 products