CVE-2026-41481 Details
Description
LangChain is a framework for building agents and LLM-powered applications. Prior to langchain-text-splitters 1.1.2, HTMLHeaderTextSplitter.split_text_from_url() validated the initial URL using validate_safe_url() but then performed the fetch with requests.get() with redirects enabled (the default). Because redirect targets were not revalidated, a URL pointing to an attacker-controlled server could redirect to internal, localhost, or cloud metadata endpoints, bypassing SSRF protections. The response body is parsed and returned as Document objects to the calling application code. Whether this constitutes a data exfiltration path depends on the application: if it exposes Document contents (or derivatives) back to the requester who supplied the URL, sensitive data from internal endpoints could be leaked. Applications that store or process Documents internally without returning raw content to the requester are not directly exposed to data exfiltration through this issue. This vulnerability is fixed in 1.1.2.
A server-side request forgery (SSRF) vulnerability has been identified in the LangChain framework, specifically in the 'langchain-text-splitters' package versions prior to 1.1.2. The issue arises in the 'HTMLHeaderTextSplitter.split_text_from_url()' method, which initially validates URLs but then fetches them with redirects enabled. This flaw allows an attacker to redirect to internal or cloud metadata endpoints, bypassing SSRF protections. The vulnerability could lead to data exfiltration if the application exposes the fetched Document contents back to the requester.
Users are advised to update to 'langchain-text-splitters' version 1.1.2 or later. The fixed version requires 'langchain-core' version 1.2.31 or later. Additionally, 'split_text_from_url()' has been deprecated; users should manually fetch HTML content and pass it to the 'split_text()' method.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-41481 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2461733 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41481.json | redhat-SADP | |
| https://github.com/langchain-ai/langchain/security/advisories/GHSA-fv5p-p927-qmxr | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | redhat-SADP |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langchain langchain-text-splitters | < 1.1.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 28, 2026 | Initial Analysis | [email protected] |
| Apr 24, 2026 | New CVE Received | [email protected] |