10

CVE-2025-2828: langchain-ai langchain-ai/langchain Server-Side Request Forgery (SSRF)

CVSS: 10.0v3.1CriticalAnalyzed
AliasesGHSA-h5gc-rm8j-5gprPYSEC-2025-70
Published 23-06-2025Last modified 24-06-2025

Vulnerability summary

CVE-2025-2828 is a critical (CVSS 10.0) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 21.02% chance of exploitation in the next 30 days, higher than 97.5% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
90/100
0100
Critical · default modelHow is this calculated?
CVSS score
10.0/10
010
Critical · v3.1 (NVD)
EPSS score
21.02%
0%100%
High · +2.55 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 23-06-2025
    PublishedVulnerability first disclosed.
  2. 24-06-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

21.02%

Chance of exploitation in the next 30 days

Percentile

98%

Versus all other CVEs

30-day change

+2.55 pp

From 18.47% on 19-09-2026

19-09-202619-10-2026
EPSS score
21.02%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Langchain1 product
Langchain-ai1 product
PyPI1 product
  • langchain-community< e188d4ecb085d4561a0be3c583d26aa9c2c3283f | < 0.0.28

3 vendors · 3 products

References

6 links