ghsa-h5gc-rm8j-5gpr
Vulnerability from github
Published
2025-06-23 21:31
Modified
2025-07-17 21:58
Severity ?
Summary
LangChain Community SSRF vulnerability exists in RequestsToolkit component
Details
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.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "langchain-community" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.0.28" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-2828" ], "database_specific": { "cwe_ids": [ "CWE-918" ], "github_reviewed": true, "github_reviewed_at": "2025-06-25T18:45:48Z", "nvd_published_at": "2025-06-23T21:15:25Z", "severity": "HIGH" }, "details": "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.", "id": "GHSA-h5gc-rm8j-5gpr", "modified": "2025-07-17T21:58:01Z", "published": "2025-06-23T21:31:56Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-2828" }, { "type": "WEB", "url": "https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f" }, { "type": "WEB", "url": "https://github.com/langchain-ai/langchain-community" }, { "type": "WEB", "url": "https://github.com/pypa/advisory-database/tree/main/vulns/langchain-community/PYSEC-2025-70.yaml" }, { "type": "WEB", "url": "https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "LangChain Community SSRF vulnerability exists in RequestsToolkit component " }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.