CVE-2025-2828: SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain
Vulnerability summary
CVE-2025-2828 is a critical (CVSS 10.0) Server-Side Request Forgery vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 22.04% chance of exploitation in the next 30 days, higher than 97.7% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?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
22.04%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
Increase +1.02 pp
From 21.02% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
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