CVE-2025-2828CWE-918

SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain

High · published June 23, 2025

CVSS v3.0
8.4
EPSS
21%
Percentile
97.6
In the wild
Unconfirmed
What it is

🚨 A sneaky Server-Side Request Forgery (SSRF) vulnerability lurks in the RequestsToolkit component of langchain version 0.0.27, and it could lead to a whole lot of trouble! ⚡ Think of this as a delivery service that doesn't check the address — it accepts requests for packages sent to any address, including your local network. Just like a delivery person dropping off personal packages at your home without verifying who really ordered them, this vulnerability lets attackers access sensitive local services and metadata. An attacker could leverage this lapse to scan ports, access local services, and even retrieve sensitive instance metadata from cloud providers like AWS and Azure! This could lead to unauthorized access to critical information, putting your entire network at risk — an absolutely devastating breach if left unaddressed.

Put simply

Think of this as a delivery service that doesn't check the address — it accepts requests for packages sent to any address, including your local network. Just like a delivery person dropping off personal packages at your home without verifying who really ordered them, this vulnerability lets attackers access sensitive local services and metadata. This SSRF vulnerability exists because the RequestsToolkit component allows unrestricted access to remote and local addresses. It fails to enforce any request restrictions, enabling an attacker to exploit this flaw for malicious purposes.

What to do

An attacker could leverage this lapse to scan ports, access local services, and even retrieve sensitive instance metadata from cloud providers like AWS and Azure! This could lead to unauthorized access to critical information, putting your entire network at risk — an absolutely devastating breach if left unaddressed. To protect your systems, upgrade langchain-community to version 0.0.28 immediately. Additionally, review your access policies to ensure restrictions are enforced on outbound requests. Keeping your software up to date is crucial to thwart these threats! You've got this! With these steps, you'll be back in the security saddle in no time! 🛡️

The record
Technical detail
CVSS v3.0
8.4 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.21019 · 97.6th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2025-06-23T20:42Z
EPSS history
Timeline
  • 23 JUN 20:42Z
    SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain
    cvelistv5