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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-41481

CVE-2026-41481: Langchain Text-Splitters SSRF Vulnerability

CVE-2026-41481 is an SSRF flaw in Langchain text-splitters that allows attackers to bypass URL validation via redirects and access internal endpoints. This post covers technical details, affected versions, and mitigations.

Published: April 30, 2026

CVE-2026-41481 Overview

CVE-2026-41481 is a Server-Side Request Forgery (SSRF) vulnerability in LangChain's langchain-text-splitters package. The vulnerability exists in the HTMLHeaderTextSplitter.split_text_from_url() function, which validates the initial URL using validate_safe_url() but then performs the HTTP fetch with requests.get() with redirects enabled by default. Because redirect targets are not revalidated, an attacker-controlled server could redirect requests to internal, localhost, or cloud metadata endpoints, effectively bypassing SSRF protections.

Critical Impact

Applications using LangChain's HTMLHeaderTextSplitter that expose Document contents back to requesters could leak sensitive data from internal endpoints, including cloud metadata services.

Affected Products

  • langchain-text-splitters versions prior to 1.1.2

Discovery Timeline

  • 2026-04-24 - CVE CVE-2026-41481 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-41481

Vulnerability Analysis

This SSRF vulnerability (CWE-918) stems from an incomplete URL validation implementation in LangChain's text splitting functionality. The HTMLHeaderTextSplitter.split_text_from_url() method is designed to fetch and parse HTML content from user-provided URLs. While the implementation includes URL validation via validate_safe_url() for the initial request, it fails to account for HTTP redirects.

When requests.get() is called without explicitly disabling redirects (allow_redirects=False), the library will automatically follow any 3xx redirect responses. An attacker can exploit this by providing a URL to a server they control, which then issues a redirect to an internal resource such as http://169.254.169.254/latest/meta-data/ (AWS metadata service), http://localhost/admin, or other internal endpoints.

The response body from these internal requests is parsed and returned as Document objects to the calling application. The severity of data exposure depends on how the application handles these Document objects—applications that return content to users could inadvertently leak sensitive internal data.

Root Cause

The root cause is the lack of redirect target validation in the URL fetching logic. The security control (validate_safe_url()) is applied only to the user-supplied URL, not to any subsequent redirect destinations. This creates a Time-of-Check Time-of-Use (TOCTOU) gap where the validated URL differs from the actually fetched resource.

Attack Vector

The attack vector is network-based and requires user interaction, as an attacker must convince a victim application to process a malicious URL. The attack flow involves:

  1. Attacker provides a URL pointing to their controlled server (e.g., https://attacker.com/redirect)
  2. The application validates this URL—it passes validation as it points to an external host
  3. The application fetches the URL using requests.get() with default settings
  4. The attacker's server responds with a 302 redirect to an internal endpoint (e.g., http://169.254.169.254/latest/meta-data/)
  5. The HTTP library automatically follows the redirect without revalidation
  6. Internal/cloud metadata content is fetched and returned as Document objects
  7. If the application exposes Document contents, sensitive data is leaked

The vulnerability mechanism relies on the Python requests library's default behavior of following redirects. When requests.get(url) is called, any 3xx response triggers automatic redirect following. The fix in version 1.1.2 addresses this by either disabling redirects or validating each redirect target before following. For detailed technical implementation, see the GitHub Security Advisory.

Detection Methods for CVE-2026-41481

Indicators of Compromise

  • Outbound HTTP requests from application servers to cloud metadata endpoints (e.g., 169.254.169.254, metadata.google.internal)
  • Unusual redirect chains in application logs where external URLs redirect to internal addresses
  • Unexpected access to localhost or internal network addresses from web-facing applications

Detection Strategies

  • Monitor network traffic for requests to cloud metadata service IP addresses originating from application servers
  • Implement application-level logging for all URLs processed by HTMLHeaderTextSplitter.split_text_from_url()
  • Review application logs for redirect chains that terminate at internal endpoints
  • Deploy Web Application Firewall (WAF) rules to detect SSRF attack patterns

Monitoring Recommendations

  • Enable detailed logging for HTTP client libraries to capture redirect chains
  • Set up alerts for network connections to RFC 1918 addresses or link-local addresses from application containers
  • Monitor for attempts to access cloud provider metadata URLs from application workloads

How to Mitigate CVE-2026-41481

Immediate Actions Required

  • Upgrade langchain-text-splitters to version 1.1.2 or later immediately
  • Audit applications using HTMLHeaderTextSplitter.split_text_from_url() for potential exposure of Document contents to untrusted users
  • Implement network-level controls to block outbound requests to metadata service endpoints
  • Review application logic to ensure Document objects are not directly exposed to requesters

Patch Information

The vulnerability is fixed in langchain-text-splitters version 1.1.2. Organizations should upgrade using their Python package manager. For detailed information about the fix, refer to the LangChain Security Advisory GHSA-fv5p-p927-qmxr.

Workarounds

  • Disable redirect following by wrapping URL fetching with custom code that validates each redirect target
  • Implement network segmentation to prevent application servers from accessing internal endpoints
  • Use a proxy or egress filter that blocks requests to internal IP ranges and metadata endpoints
  • Restrict URL inputs to a known allowlist of trusted domains where possible
bash
# Upgrade langchain-text-splitters to patched version
pip install --upgrade langchain-text-splitters>=1.1.2

# Verify installed version
pip show langchain-text-splitters | grep Version

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 Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41488: Langchain-openai SSRF Vulnerability

  • CVE-2026-27795: LangChain RecursiveUrlLoader SSRF Bypass

  • CVE-2026-26019: LangChain RecursiveUrlLoader SSRF Vulnerability

  • CVE-2026-26013: LangChain SSRF Vulnerability
Default Legacy - Prefooter | 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