GHSA-fv5p-p927-qmxr: LangChain Text Splitters: HTMLHeaderTextSplitter.split_text_from_url SSRF Redirect Bypass
- Identifier
- GHSA-fv5p-p927-qmxr
- Published
- Record updated
- Affected
- langchain-text-splitters < 1.1.2
- Fixed in
- 1.1.2
- released April 16, 2026, on the day of disclosure
Summary
LangChain Text Splitters before 1.1.2 has an SSRF bypass in HTMLHeaderTextSplitter.split_text_from_url(). The function validates only the initial URL with validate_safe_url() and then calls requests.get() with redirects enabled, so an attacker-controlled server can redirect the fetch to internal, localhost or cloud metadata endpoints such as AWS IMDSv1. Data exfiltration requires the application to return Document contents to the party that supplied the URL.
Mitigation
Fixed in langchain-text-splitters 1.1.2 (requires langchain-core >= 1.2.31), which replaces requests.get() with the SSRF-safe SSRFSafeSyncTransport from langchain-core that validates DNS results and pins connections on every request, including redirect targets. split_text_from_url() is also deprecated; users should fetch HTML themselves and pass it to split_text().
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langchain-text-splittersPyPILLM dependency since 2024-03-01 · 6 tracked dependents
Related items
- HighCVE-2026-136537: LiteLLM key_management_endpoints missing authorization allows bypassSame vendor · NVD/CVE Database
- MediumCVE-2026-135287: LiteLLM Proxy callback injection through request body callbacks fieldsSame vendor · NVD/CVE Database
- MediumGHSA-8prr-f582-jqq3: LangGraph CLI prints the registry push token in `langgraph deploy --verbose` outputSame vendor · GitHub Advisory Database
- HighGHSA-4hm6-w6qq-w73v: LangGraph JavaScript custom authentication may permit cross-user Store accessSame vendor · GitHub Advisory Database
- MediumGHSA-3fx2-cqw9-xr3c: LangGraph: Unencoded identifiers in LangGraph SDK v3 streaming can redirect authenticated GET requestsSame vendor · GitHub Advisory Database