CVE-2026-41481
LangChain: HTMLHeaderTextSplitter.split_text_from_url SSRF Redirect Bypass
Also known as GHSA-fv5p-p927-qmxr, PYSEC-2026-77
Mitigation
- Upgrade langchain-text-splitters to 1.1.2 or later.
Who should check
- Projects that depend on PyPI package langchain-text-splitters (< 1.1.2)
- Anyone running langchain-ai langchain-text-splitters < 1.1.2
Vulnerability facts
- Affected
- langchain-text-splitters < 1.1.2
- Fixed in
- 1.1.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.45% chance of exploitation in 30 days (percentile 31, 2026-11-26)
- CWE
- CWE-918
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI langchain-text-splitters | < 1.1.2 | 1.1.2 | osv |
| langchain-ai langchain-text-splitters | < 1.1.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-41481. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-41481.md Affected: langchain-text-splitters < 1.1.2 Fixed in: 1.1.2 Steps: 1. Search this machine and project for langchain-text-splitters (PyPI), langchain-ai langchain-text-splitters: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://access.redhat.com/security/cve/CVE-2026-41481
- https://bugzilla.redhat.com/show_bug.cgi?id=2461733
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41481.json
- https://github.com/langchain-ai/langchain
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain-text-splitters/PYSEC-2026-77.yaml
FAQ
Is CVE-2026-41481 being exploited?
There is no confirmed exploitation: CVE-2026-41481 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-41481?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-41481?
langchain-text-splitters < 1.1.2.
Is there a fix for CVE-2026-41481?
Yes. Fixed in 1.1.2. Upgrade langchain-text-splitters to 1.1.2 or later.
How do I check if I'm affected by CVE-2026-41481?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.