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.
Security readout for executives and security teams
Plain-English summary
This LangChain issue can let a user-supplied web address redirect a server toward internal services that should not be reachable. The main business risk is confidential data exposure if the application returns parsed document content, summaries, or derivatives to the requester.
Executive priority
Treat this as a timely patch and exposure review, not an emergency based on current evidence. Prioritize internet-facing AI or document-ingestion services that fetch URLs supplied by users.
Technical view
Before langchain-text-splitters 1.1.2, HTMLHeaderTextSplitter.split_text_from_url() validated only the initial URL. The later requests.get() call followed redirects by default, and redirect targets were not revalidated, creating an SSRF redirect bypass. Returned response bodies become Document objects.
Likely exposure
Exposure is limited to applications using langchain-text-splitters before 1.1.2 and passing user-controlled URLs into split_text_from_url(). Data leakage depends on whether Document contents or derived outputs are returned to the requester.
Exploitation context
The provided sources do not show active exploitation, and the CVE is not marked KEV. Exploitation requires an application path where a requester can influence the URL and observe resulting document content or downstream output.
Researcher notes
The vulnerability is CWE-918 SSRF with CVSS 6.5. Confidentiality impact is potentially high, but exploitability is application-dependent because the response must be exposed through Documents or downstream processing visible to the requester.
Mitigation direction
Upgrade langchain-text-splitters to version 1.1.2 or later.
Review vendor guidance for any additional hardening recommendations.
Block untrusted URL ingestion where this helper is unnecessary.
Restrict outbound access from application hosts to internal and metadata endpoints.
Avoid returning raw Document contents from user-requested fetches.
Validation and detection
Inventory installed langchain-text-splitters versions across applications and build artifacts.
Search code for HTMLHeaderTextSplitter.split_text_from_url() usage.
Confirm whether any call accepts user-controlled URLs.
Trace whether returned Document content reaches users, logs, models, or storage.
Review egress controls for localhost, internal networks, and cloud metadata endpoints.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-918: Information exposure and cloud metadata lookup
Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references SSRF or metadata access, so cloud discovery and credential material review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-918 · source CWE mapping
Server-Side Request Forgery (SSRF)
Server-Side Request Forgery (SSRF) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.