Read the docs
TI-2025-02469 Aliases CVE-2025-2828GHSA-h5gc-rm8j-5gpr

SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain

Priority HIGH 76CWE-918Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.21019 97th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed langchain-ai/langchain (langchain-ai): 0.0.28langchain-community (PyPI): 0.0.28

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
langchain-ailangchain-ai/langchainbefore 0.0.280.0.28Patch availableCNA
—langchain-community (PyPI)before 0.0.280.0.28Patch availableGHSA-h5gc-rm8j-5gpr
  • langchain-ai/langchain Vendorlangchain-ai Affected before 0.0.28 Fixed in 0.0.28 Patch available CNA
  • langchain-community (PyPI) Vendor— Affected before 0.0.28 Fixed in 0.0.28 Patch available GHSA-h5gc-rm8j-5gpr

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:langchain:langchain:*:*:*:*:community:*:*:*before 0.0.28Vulnerablelangchain-ai
  • cpe:2.3:a:langchain:langchain:*:*:*:*:community:*:*:* Versions before 0.0.28 Vulnerable ·langchain-ai

Remediation

  • Fix · CNA langchain-ai/langchain (langchain-ai) Fixed in 0.0.28
  • Fix · GHSA-h5gc-rm8j-5gpr langchain-community (PyPI) Fixed in 0.0.28 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

Not affected: 3 products
  • OpenShift Lightspeed
  • Red Hat Ansible Automation Platform 2
  • Red Hat Enterprise Linux AI (RHEL AI)

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-2828
  2. 2026-10-03 Alias added: GHSA-h5gc-rm8j-5gpr

References

  • TI-2023-20724 An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2023-20706 An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary… CVSS 3.1CRITICAL 9.8
  • TI-2023-20166 An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2023-20136 An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter. CVSS 3.1CRITICAL 9.8
  • TI-2023-18185 An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a… CVSS 3.1CRITICAL 9.8
  • TI-2023-18176 An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because… CVSS 3.1CRITICAL 9.8
See all 27 →

Sources