PYSEC-2026-77

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/langchain-text-splitters/PYSEC-2026-77.yaml
JSON Data
https://api.test.osv.dev/v1/vulns/PYSEC-2026-77
Aliases
Published
2026-04-24T21:16:19.490Z
Modified
2026-05-20T09:19:04.238442Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

LangChain is a framework for building agents and LLM-powered applications. Prior to langchain-text-splitters 1.1.2, HTMLHeaderTextSplitter.splittextfromurl() validated the initial URL using validatesafe_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.

References

Affected packages

PyPI / langchain-text-splitters

Package

Name
langchain-text-splitters
View open source insights on deps.dev
Purl
pkg:pypi/langchain-text-splitters

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.2

Affected versions

0.*
0.0.1
0.0.2
0.2.0
0.2.1
0.2.2
0.2.4
0.3.0.dev0
0.3.0.dev1
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6rc1
0.3.6rc2
0.3.6
0.3.7
0.3.8
0.3.9
0.3.10
0.3.11
1.*
1.0.0a1
1.0.0
1.1.0
1.1.1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/langchain-text-splitters/PYSEC-2026-77.yaml"