logo

CVE-2025-2828 langchain-community

Package

Manager: pip
Name: langchain-community
Vulnerable Version: >=0 <0.0.28

Severity

Level: High

CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.00022 pctl0.04141

Details

LangChain Community SSRF vulnerability exists in RequestsToolkit component 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.

Metadata

Created: 2025-06-23T21:31:56Z
Modified: 2025-07-17T21:58:01Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-h5gc-rm8j-5gpr/GHSA-h5gc-rm8j-5gpr.json
CWE IDs: ["CWE-918"]
Alternative ID: GHSA-h5gc-rm8j-5gpr
Finding: F100
Auto approve: 1