CVE-2025-2828 in the critical feed json
SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain
published 2025-06-23 16 mo ago modified 2026-06-17 4 mo ago also GHSA-h5gc-rm8j-5gpr , PYSEC-2025-70 , EUVD-2025-18953
- cvss
- 8.4
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 21.0%
- EPSS 21.0% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi langchain-community 0.0.28
- langchain-ai langchain-ai/langchain 0.0.28
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-2828 updated cvss 8.3
langchain-community: SSRF Vulnerability in langchain-community
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/de-minimal-rhel8, ansible-automation-platform-25/de-minimal-rhel9, ansible-automation-platform-25/lightspeed-rhel8, +9 more Red Hat Enterprise Linux AI (RHEL AI) rhelai1/bootc-amd-rhel9, rhelai1/bootc-intel-rhel9, rhelai1/skills-adapter-v3, rhelai1/bootc-nvidia-rhel9, rhelai1/knowledge-adapter-v3, rhelai1/prometheus-8x7b-v2-0, +20 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 16 mo ago
Exploit prediction
21.02% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.4 | CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.0 | 8.4 | CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H |
| OSV | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain-community | <0.0.28 |
0.0.28 |
Affected products
- langchain-ai langchain-ai/langchain
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
References
-
github.com
/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f
web, patch
-
huntr.com
/bounties/8f771040-7f34-420a-b96b-5b93d4a99afc
exploit, web, third-party-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2025-2828
advisory
-
github.com
/langchain-ai/langchain-community
web
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain-community/PYSEC-2025-70.yaml
web
-
github.com
/advisories/GHSA-h5gc-rm8j-5gpr
advisory
Sources
- CVE List CVE-2025-2828
- GitHub Advisory GHSA-h5gc-rm8j-5gpr
- NVD CVE-2025-2828
- OSV PYSEC-2025-70
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.