# CVE-2025-2828: SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain

> CVE-2025-2828: SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain. CVSS 8.4 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-2828
Last updated: 2026-06-17T09:07:41Z

- Published: 2025-06-23 20:42 UTC · Updated: 2026-06-17 09:07 UTC · Assigner: @huntr\_ai
- CVSS: 8.4 (CVSS 3.1) · Severity: High · Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- EPSS: 21.0%, 98th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-918

## 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.

## Affected vendors and products

- langchain-ai: langchain-ai/langchain

## Tracked companies

- [LangChain (LangSmith)](https://rewindex.com/company/langchain-langsmith.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-2828)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-2828)
- [https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f](https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f)
- [https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc](https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-2828 · Markdown: https://rewindex.com/cve/CVE-2025-2828.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-2828 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:09:04.591Z
