CVE-2025-2828 Details
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.
A Server-Side Request Forgery (SSRF) vulnerability has been identified in the RequestsToolkit component of the langchain-community package, specifically in langchain-ai/langchain version 0.0.27. The vulnerability arises because the toolkit does not restrict requests to remote internet addresses, allowing access to local addresses as well. This flaw could be exploited to perform port scans, access local services, retrieve instance metadata from cloud environments like Azure and AWS, and interact with servers on the local network.
Users can update to langchain-ai/langchain version 0.0.28 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f | [email protected] | Patch |
| https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langchain langchain | < 0.0.28 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 16, 2025 | Initial Analysis | [email protected] |
| Jun 24, 2025 | CVE Modified | CISA-ADP |
| Jun 23, 2025 | New CVE Received | [email protected] |