{"id":"CVE-2025-2828","published":"2025-06-23T20:42:28Z","modified":"2025-06-24T13:32:19Z","title":"SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain","vendor":"langchain-ai","product":"langchain-ai/langchain","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.21856,"percentile":0.97702,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc","tags":[]},{"url":"https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f","tags":[]}],"priority":{"score":25.4,"factors":[{"name":"EPSS percentile","points":19.54},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","versions":[">= unspecified, < 0.0.28"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-06-24T13:32:17.049400Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain-community","vulnerableRanges":["<0.0.28"],"patched":["0.0.28"],"from":["GHSA-h5gc-rm8j-5gpr","PYSEC-2025-70"],"provenance":"source"}],"summary":{"text":"The RequestsToolkit component of the langchain-community package (langchain_community.agent_toolkits.openapi.toolkit.RequestsToolkit) in langchain-ai/langchain contains a Server-Side Request Forgery flaw, because it does not restrict requests to local addresses as well as remote internet addresses. An attacker with network access and high privileges, whose attack needs a user to interact with the toolkit, could use it to port scan, reach local services, retrieve cloud instance metadata, and interact with servers on the local network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:23:57Z"},"euvd":{"id":"EUVD-2025-18953","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langchain-ai-langchain-cve-2023-34541","parents":[{"from":"CVE-2023-34541","to":"CVE-2025-2828","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/langchain/langchain/agents/load_tools.py"],"commits":["https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f"],"basis":"shared function","functions":["_get_sleep"]}]},{"from":"CVE-2023-36189","to":"CVE-2025-2828","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/langchain/langchain/agents/load_tools.py"],"commits":["https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f"],"basis":"shared function","functions":["_get_sleep"]}]},{"from":"CVE-2023-38860","to":"CVE-2025-2828","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/langchain/langchain/agents/load_tools.py"],"commits":["https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","https://github.com/langchain-ai/langchain/commit/d353d668e4b0514122a443cef91de7f76fea4245","https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f"],"basis":"shared function","functions":["_get_sleep"]}]}]}}