CriticalVulnerability
CVE-2025-2828: langchain-community RequestsToolkit SSRF allows access to local addresses
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-2828
- Published
- Record updated
- Affected
- langchain-community < 0.0.28
- Fixed in
- 0.0.28
- released March 12, 2024, 469 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 21.0%
Summary
CVE-2025-2828 is a Server-Side Request Forgery (SSRF) flaw in the RequestsToolkit component of the langchain-community package (langchain_community.agent_toolkits.openapi.toolkit.RequestsToolkit) in langchain-ai/langchain version 0.0.27. The toolkit does not restrict requests to local addresses, so an attacker could port scan, reach local services, retrieve cloud instance metadata (such as Azure and AWS), and interact with servers on the local network.
Mitigation
Fixed in version 0.0.28.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langchain-communityPyPILLM dependency since 2023-12-08 · 27 tracked dependents
Related items
- MediumGHSA-8prr-f582-jqq3: LangGraph CLI prints the registry push token in `langgraph deploy --verbose` outputSame vendor · GitHub Advisory Database
- HighGHSA-4hm6-w6qq-w73v: LangGraph JavaScript custom authentication may permit cross-user Store accessSame vendor · GitHub Advisory Database
- MediumGHSA-3fx2-cqw9-xr3c: LangGraph: Unencoded identifiers in LangGraph SDK v3 streaming can redirect authenticated GET requestsSame vendor · GitHub Advisory Database
- MediumGHSA-6hmw-9432-67qq: LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite storesSame vendor · GitHub Advisory Database
- MediumCVE-2026-108575: BerriAI LiteLLM improper authorization in secret resolution via api_keySame vendor · NVD/CVE Database