The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27795

CVE-2026-27795: LangChain RecursiveUrlLoader SSRF Bypass

CVE-2026-27795 is a redirect-based Server-Side Request Forgery bypass in LangChain's RecursiveUrlLoader that allows attackers to access internal endpoints through URL redirects. This article covers technical details, affected versions, and mitigation strategies.

Published: February 27, 2026

CVE-2026-27795 Overview

A redirect-based Server-Side Request Forgery (SSRF) bypass vulnerability exists in the RecursiveUrlLoader component of @langchain/community, a framework for building LLM-powered applications. 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 vulnerability effectively bypasses the SSRF protections introduced in version 1.1.14 (CVE-2026-26019).

Critical Impact

Attackers can leverage redirect chains to access internal services, cloud metadata endpoints, or other restricted resources that should be protected by SSRF mitigations, potentially exposing sensitive infrastructure data or enabling further attacks.

Affected Products

  • @langchain/community versions prior to 1.1.18
  • LangChainJS applications using RecursiveUrlLoader for web content loading
  • LLM-powered applications processing user-supplied URLs through LangChain

Discovery Timeline

  • February 25, 2026 - CVE-2026-27795 published to NVD
  • February 25, 2026 - Last updated in NVD database

Technical Details for CVE-2026-27795

Vulnerability Analysis

This vulnerability represents an SSRF bypass that circumvents existing security controls. The RecursiveUrlLoader component properly validates the initial URL provided by users against a safelist of allowed destinations. However, the validation occurs only once at the start of the request. When the target server responds with a 3xx redirect status code (301, 302, 303, 307, or 308), the underlying fetch implementation follows the redirect automatically without re-validating the new destination URL.

This design flaw allows attackers to set up a malicious server that responds with a redirect to an internal resource. The initial URL passes validation because it points to an attacker-controlled external server, but the redirect target—such as http://169.254.169.254/ for cloud metadata or http://localhost:8080/admin—is never checked against the security policy.

Root Cause

The root cause is the lack of redirect validation in the URL fetching logic. The original implementation relied on automatic redirect following provided by the fetch API without intercepting and validating each hop in the redirect chain. This is classified under CWE-918 (Server-Side Request Forgery).

Attack Vector

An attacker can exploit this vulnerability through the network by crafting a malicious URL that initially points to an attacker-controlled server. When the RecursiveUrlLoader fetches this URL, the attacker's server responds with a redirect to a sensitive internal endpoint. Since the redirect is followed automatically without validation, the loader fetches the internal resource and potentially returns its contents to the attacker.

typescript
// Security patch introducing redirect validation constants
// Source: https://github.com/langchain-ai/langchainjs/commit/2812d2b2b9fd9343c4850e2ab906b8cf440975ee

 const virtualConsole = new VirtualConsole();
 virtualConsole.on("error", () => {});
 
+const MAX_REDIRECTS = 10;
+const REDIRECT_CODES = new Set([301, 302, 303, 307, 308]);
+
 export interface RecursiveUrlLoaderOptions {
   excludeDirs?: string[];
   extractor?: (text: string) => string;
typescript
// Security patch importing SSRF validation utilities
// Source: https://github.com/langchain-ai/langchainjs/commit/d5e3db0d01ab321ec70a875805b2f74aefdadf9d

 import { JSDOM, VirtualConsole } from "jsdom";
 import { Document } from "@langchain/core/documents";
 import { AsyncCaller } from "@langchain/core/utils/async_caller";
+import { isSameOrigin, validateSafeUrl } from "@langchain/core/utils/ssrf";
 import {
   BaseDocumentLoader,
   DocumentLoader,

Detection Methods for CVE-2026-27795

Indicators of Compromise

  • Outbound HTTP requests from LangChain applications to cloud metadata endpoints (e.g., 169.254.169.254, metadata.google.internal)
  • Unexpected connections to internal IP ranges (10.x.x.x, 172.16.x.x-172.31.x.x, 192.168.x.x) from web-facing services
  • HTTP 3xx redirect responses in logs where the initial request was to an external domain but subsequent requests target internal resources

Detection Strategies

  • Monitor network traffic from LangChain application servers for connections to internal IP address ranges or cloud metadata services
  • Implement egress filtering rules and alert on blocked attempts to access internal resources
  • Review application logs for RecursiveUrlLoader usage patterns that involve multiple redirects
  • Deploy web application firewalls (WAF) with SSRF detection capabilities to identify redirect-based bypass attempts

Monitoring Recommendations

  • Enable detailed logging for all HTTP requests made by RecursiveUrlLoader, including redirect chains
  • Set up alerts for any requests to cloud provider metadata endpoints from application servers
  • Monitor for unusual patterns in URL loading where initial requests go to external domains followed by internal connections
  • Track version information of @langchain/community packages across your application inventory

How to Mitigate CVE-2026-27795

Immediate Actions Required

  • Upgrade @langchain/community to version 1.1.18 or later immediately
  • Audit all applications using RecursiveUrlLoader to identify vulnerable deployments
  • Implement network-level egress controls to block access to internal resources and cloud metadata endpoints from application servers
  • Review and restrict URL input sources to trusted origins where possible

Patch Information

Users should upgrade to @langchain/community version 1.1.18, which validates every redirect hop by disabling automatic redirects and re-validating Location targets before following them. The fix implements three key changes:

  1. Automatic redirects are disabled (redirect: "manual")
  2. Each 3xx Location header is resolved and validated with validateSafeUrl() before the next request
  3. A maximum redirect limit (MAX_REDIRECTS = 10) prevents infinite loops

For detailed patch information, see the GitHub Security Advisory GHSA-gf3v-fwqg-4vh7 and Release v1.1.18.

Workarounds

  • If immediate upgrade is not possible, avoid processing untrusted user-supplied URLs through RecursiveUrlLoader
  • Implement a reverse proxy or network firewall rule that blocks outbound connections from application servers to internal IP ranges and cloud metadata endpoints
  • Use URL allowlisting at the application level to restrict RecursiveUrlLoader to only known, trusted domains
  • Consider disabling RecursiveUrlLoader functionality until the upgrade can be applied
bash
# Update @langchain/community to patched version
npm update @langchain/community@1.1.18

# Verify installed version
npm list @langchain/community

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechLangchain

  • SeverityMEDIUM

  • CVSS Score4.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Pull Request

  • GitHub Release v1.1.14

  • GitHub Release v1.1.18

  • GitHub Security Advisory GHSA-gf3v-fwqg-4vh7

  • GitHub Security Advisory GHSA-mphv-75cg-56wg
  • Related CVEs
  • CVE-2026-26019: LangChain RecursiveUrlLoader SSRF Vulnerability

  • CVE-2026-26013: LangChain SSRF Vulnerability

  • CVE-2025-2828: Langchain RequestsToolkit SSRF Vulnerability

  • CVE-2026-34070: LangChain Path Traversal Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English