Skip to main content

CVE-2025-2828 — Vulnerability in langchain-community — CVE Details

CRITICAL

Published June 23, 2025Updated June 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.83%). Schedule for your next planned update.

Does your project use an affected langchain-community version?

Paste your requirements.txt to check it for CVE-2025-2828 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my requirements.txt

Summary

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.

Advisory Timeline

  • First published June 23, 2025 (521 days ago).
  • Last revised June 10, 2026 — 352 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update langchain-community to e188d4ecb085d4561a0be3c583d26aa9c2c3283f or later
pip install "langchain-community>=e188d4ecb085d4561a0be3c583d26aa9c2c3283f"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: PyPI (1).

PackageFixed In
langchain-community PyPI · Affected: 0.0.1, 0.0.10, 0.0.11, 0.0.12 (+342 more)e188d4ecb085d4561a0be3c583d26aa9c2c3283f, 0.0.28

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-2828?
This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2025-2828?
CVE-2025-2828 affects langchain-community. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-2828 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.83%
EPSS percentile: 54.9

This is an above-median EPSS score — 54.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

PYSEC-2025-70
GHSA-h5gc-rm8j-5gpr

Related CVEs

  • CVE-2026-77359
    CRITICAL

    Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes

  • CVE-2026-77312
    CRITICAL

    Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt