Skip to content
SSRF Disclosed report Intermediate CVE-2025-2828

LangChain Community SSRF vulnerability exists in RequestsToolkit component

The RequestsToolkit in langchain-community did not restrict requests to remote internet addresses, allowing access to local addresses. An attacker could use this to perform port scans, access local services, retrieve cloud instance metadata, and interact with local network servers.

langchain-ai/langchain

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-h5gc-rm8j-5gpr, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the toolkit lacked validation to block requests to private or local IP addresses.

Impact

An attacker could perform port scans, access local services, retrieve instance metadata from cloud environments, and interact with servers on the local network.

What the attacker needed

Access to RequestsToolkit

The fix

The issue was fixed in version 0.0.28.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Server-Side Request Forgery (SSRF) is when an attacker makes a server send requests to places it shouldn't, like internal systems. Here, a toolkit meant to make web requests could be tricked into contacting local or private addresses, which could expose sensitive information or services.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from langchain-ai/langchain

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.