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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.0, CNA) `CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **CWE:** CWE-918
- **Aliases:** GHSA-h5gc-rm8j-5gpr, PYSEC-2025-70
- **Published:** 2025-06-23T20:42:28.639Z
- **Modified:** 2026-06-17T09:07:41.280Z

## Who should check

- Projects that depend on PyPI package langchain-community (\< 0.0.28)
- Anyone running langchain-ai/langchain \>= unspecified, \< 0.0.28

## 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 and fixed versions

- PyPI `langchain-community`: affected \< 0.0.28; fixed 0.0.28 (osv)
- langchain-ai/langchain: \>= unspecified, \< 0.0.28 (cvelist)

## Mitigation

- Upgrade langchain-community to 0.0.28 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-2828. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-2828.md
Affected: langchain-community < 0.0.28
Fixed in: 0.0.28

Steps:
1. Search this machine and project for langchain-community (PyPI), langchain-ai/langchain: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-2828 being exploited?

There is no confirmed exploitation: CVE-2025-2828 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-2828?

High: CVSS 8.4 (v3.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-2828?

langchain-community \< 0.0.28.

### Is there a fix for CVE-2025-2828?

Yes. Fixed in 0.0.28. Upgrade langchain-community to 0.0.28 or later.

### How do I check if I'm affected by CVE-2025-2828?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-2828>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-h5gc-rm8j-5gpr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2025-70> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-2828> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-2828>
