Skip to content
MediumVulnerability

CVE-2026-41481: langchain-text-splitters SSRF via redirects in HTMLHeaderTextSplitter

Identifier
CVE-2026-41481
Published
Record updated
View JSON
Affected
  • langchain-text-splitters < 1.1.2
Fixed in
1.1.2
  • released April 16, 2026, 8 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

LangChain's langchain-text-splitters, prior to 1.1.2, validated the initial URL in HTMLHeaderTextSplitter.split_text_from_url() but fetched it with requests.get() while redirects were enabled and never revalidated redirect targets. An attacker-controlled URL could therefore redirect to internal, localhost, or cloud metadata endpoints, bypassing SSRF protections. Exfiltration depends on the application: it is possible only if the returned Document contents are exposed back to the requester who supplied the URL.

Mitigation

Fixed in 1.1.2