LangChain: HTMLHeaderTextSplitter.split_text_from_url SSRF Redirect Bypass
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-918 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| langchain-ai | langchain-text-splitters | before 1.1.2 | 1.1.2 | Patch available | CNA |
| — | langchain-text-splitters (PyPI) | before 1.1.2 | 1.1.2 | Patch available | GHSA-fv5p-p927-qmxr |
- langchain-text-splitters Vendorlangchain-ai Affected before 1.1.2 Fixed in 1.1.2 Patch available CNA
- langchain-text-splitters (PyPI) Vendor— Affected before 1.1.2 Fixed in 1.1.2 Patch available GHSA-fv5p-p927-qmxr
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:langchain:langchain-text-splitters:*:*:*:*:*:*:*:* | before 1.1.2 | Vulnerable | langchain-ai |
- cpe:2.3:a:langchain:langchain-text-splitters:*:*:*:*:*:*:*:* Versions before 1.1.2 Vulnerable ·langchain-ai
Remediation
- Fix · CNA langchain-text-splitters (langchain-ai) Fixed in 1.1.2
- Fix · GHSA-fv5p-p927-qmxr langchain-text-splitters (PyPI) Fixed in 1.1.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Applications 8 | Affected | No fix yet: Fix deferred |
| OpenShift Lightspeed | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41481
- 2026-10-03 Alias added: GHSA-fv5p-p927-qmxr
References
Sources
- CVE-2026-41481 · CVE Program
- CVE-2026-41481 · NVD
- FIRST EPSS
- GHSA-fv5p-p927-qmxr · GitHub Advisory Database · CC BY 4.0
- CVE-2026-41481 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences