SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain (langchain-ai langchain-ai/langchain)

CVE-2025-2828
HIGH 8.4

At a glance

Source
NVD
EPSS
EPSS 21.02 % · percentile 98 ()
State
PUBLISHED
Published
Updated
Assigner
@huntr_ai
NVD status
Analyzed

Description

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.

Weaknesses (CWE)

  • CWE-918 — Server-Side Request Forgery

References

Scores

VersionScoreVectorScored by
CVSS 3.0HIGH 8.4CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H@huntr_ai
CVSS 3.1CRITICAL 10.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.0HIGH 8.4CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:HNVD · security@huntr.dev (Secondary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
langchain-ai · langchain-ai/langchainaffected unspecified < 0.0.28

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD