BreachSpiderVerified, not vibes

CVE-2026-27795 in Langchain Community

High 7.4

LangChain is a framework for building LLM-powered applications. Prior to version 1.1.8, a redirect-based Server-Side Request Forgery (SSRF) bypass exists in `RecursiveUrlLoader` in `@langchain/community`. The loader validates the initial URL but allows the underlying fetch to follow redirects automatically, which pe...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.4
EPSS0.5%
EPSS percentile33th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Langchain Langchain Community < 1.1.18

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

LangChain is a framework for building LLM-powered applications. Prior to version 1.1.8, a redirect-based Server-Side Request Forgery (SSRF) bypass exists in `RecursiveUrlLoader` in `@langchain/community`. The loader validates the initial URL but allows the underlying fetch to follow redirects automatically, which permits a transition from a safe public URL to an internal or metadata endpoint without revalidation. This is a bypass of the SSRF protections introduced in 1.1.14 (CVE-2026-26019). Users should upgrade to `@langchain/community` 1.1.18, which validates every redirect hop by disabling automatic redirects and re-validating `Location` targets before following them. In this version, automatic redirects are disabled (`redirect: "manual"`), each 3xx `Location` is resolved and validated with `validateSafeUrl()` before the next request, and a maximum redirect limit prevents infinite loops.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-27795
BreachSpider IDBS-2026-GLOBAL-076539-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Published2026-02-25
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-918: Server-Side Request Forgery (SSRF)

Attacker causes the server to make HTTP requests to attacker-chosen destinations, potentially reaching internal services.

Related attack patterns (CAPEC)

CAPEC-664 Server Side Request Forgery via CWE-918

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A redirect-based Server-Side Request Forgery (SSRF) vulnerability exists in LangChain's RecursiveUrlLoader in versions prior to 1.1.8, allowing unauthorized access to internal or metadata endpoints.

An attacker can exploit this vulnerability by providing a URL that initially points to a safe public resource but redirects to an internal or metadata endpoint. The loader validates the initial URL but does not restrict the redirection path, enabling the SSRF attack.

Questions

What is CVE-2026-27795?

A redirect-based Server-Side Request Forgery (SSRF) vulnerability exists in LangChain's RecursiveUrlLoader in versions prior to 1.1.8, allowing unauthorized access to internal or metadata endpoints.

What is the CVSS score for CVE-2026-27795?

CVE-2026-27795 has CVSS 7.4 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N. EPSS: 0.5%.

Is CVE-2026-27795 actively exploited?

No confirmed active exploitation of CVE-2026-27795 as of 2026-09-25.

How do I remediate CVE-2026-27795?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2026-27795?

CVE-2026-27795 affects Langchain Langchain Community.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Langchain","product":"Langchain Community","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.