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

- Severity: High 8.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 22.0%, higher than 97% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-23T20:42:28.639Z
- Modified: 2026-06-17T09:07:41.280Z
- Also known as: GHSA-h5gc-rm8j-5gpr, PYSEC-2025-70
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- langchain-ai langchain-ai/langchain: from unspecified before 0.0.28
- langchain-community (PyPI): before 0.0.28; before e188d4ecb085d4561a0be3c583d26aa9c2c3283f
- langchain langchain: before 0.0.28

## Every score

- @huntr_ai: CVSS:3.0 8.4 High `CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.0 8.4 High `CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc> (exploit, evidence, third-party-advisory, web)
- <https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2828> (advisory)
- <https://github.com/langchain-ai/langchain-community> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain-community/PYSEC-2025-70.yaml> (web)
- <https://github.com/advisories/GHSA-h5gc-rm8j-5gpr> (advisory)

## Sources

- CVE List: [CVE-2025-2828](https://www.cve.org/CVERecord?id=CVE-2025-2828), CVE Terms of Use, modified 2025-06-24
- GitHub Advisory Database: [GHSA-h5gc-rm8j-5gpr](https://github.com/advisories/GHSA-h5gc-rm8j-5gpr), CC-BY-4.0, modified 2025-07-17
- NVD: [CVE-2025-2828](https://nvd.nist.gov/vuln/detail/CVE-2025-2828), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-70](https://osv.dev/vulnerability/PYSEC-2025-70), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2025-2828 · Whole record: https://cve.day/CVE-2025-2828.json · Rebuilt by cve.day 2026-11-25T22:58:59.537Z
