LangChain SSRF protection bypasses in langchain-text-splitters and langchain-openai
Two vulnerabilities in LangChain packages allowed SSRF protections to be bypassed: HTMLHeaderTextSplitter.split_text_from_url() followed unvalidated redirects (CVE-2026-41481), and langchain-openai's _url_to_size() helper was subject to a TOCTOU/DNS rebinding window (CVE-2026-41488), potentially allowing requests to internal, localhost or cloud metadata endpoints and leaking internal data to callers.
Disclosed 24 April 2026 · Record updated 13 September 2026
Impact
Attacker-supplied URLs could reach internal, localhost or cloud metadata endpoints; depending on the application, content from those internal endpoints could be returned to the requester as Document objects, enabling data exfiltration.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-41481
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-41488
