{"url":"http://public2.vulnerablecode.io/api/packages/49700?format=json","purl":"pkg:pypi/langchain-text-splitters@0.3.9","type":"pypi","namespace":"","name":"langchain-text-splitters","version":"0.3.9","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"1.1.2","latest_non_vulnerable_version":"1.1.2","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/37304?format=json","vulnerability_id":"VCID-3k4a-kytp-kbhx","summary":"LangChain is a framework for building agents and LLM-powered applications. Prior to langchain-text-splitters\n 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.","references":[{"reference_url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-fv5p-p927-qmxr","reference_id":"","reference_type":"","scores":[{"value":"6.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}],"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-fv5p-p927-qmxr"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/49707?format=json","purl":"pkg:pypi/langchain-text-splitters@1.1.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/langchain-text-splitters@1.1.2"}],"aliases":["CVE-2026-41481","GHSA-fv5p-p927-qmxr","PYSEC-2026-77"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-3k4a-kytp-kbhx"}],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/47946?format=json","vulnerability_id":"VCID-ypxj-nhcp-dkan","summary":"LangChain Text Splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing\nThe HTMLSectionSplitter class in langchain-text-splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing. This vulnerability arises because the class allows the use of arbitrary XSLT stylesheets, which are parsed using lxml.etree.parse() and lxml.etree.XSLT() without any hardening measures. In lxml versions up to 4.9.x, external entities are resolved by default, allowing attackers to read arbitrary local files or perform outbound HTTP(S) fetches. In lxml versions 5.0 and above, while entity expansion is disabled, the XSLT document() function can still read any URI unless XSLTAccessControl is applied. This vulnerability allows remote attackers to gain read-only access to any file the LangChain process can reach, including sensitive files such as SSH keys, environment files, source code, or cloud metadata. No authentication, special privileges, or user interaction are required, and the issue is exploitable in default deployments that enable custom XSLT.","references":[{"reference_url":"https://github.com/langchain-ai/langchain","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/langchain-ai/langchain"},{"reference_url":"https://github.com/langchain-ai/langchain/commit/43eef435505a1c907227b724c0c760ad5fc01790","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/langchain-ai/langchain/commit/43eef435505a1c907227b724c0c760ad5fc01790"},{"reference_url":"https://github.com/langchain-ai/langchain/pull/31819","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/langchain-ai/langchain/pull/31819"},{"reference_url":"https://huntr.com/bounties/cf78abbb-df3b-43de-b6ee-132b73ff8331","reference_id":"","reference_type":"","scores":[],"url":"https://huntr.com/bounties/cf78abbb-df3b-43de-b6ee-132b73ff8331"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6985","reference_id":"CVE-2025-6985","reference_type":"","scores":[],"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6985"},{"reference_url":"https://github.com/advisories/GHSA-m42m-m8cr-8m58","reference_id":"GHSA-m42m-m8cr-8m58","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-m42m-m8cr-8m58"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/49700?format=json","purl":"pkg:pypi/langchain-text-splitters@0.3.9","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-3k4a-kytp-kbhx"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/langchain-text-splitters@0.3.9"}],"aliases":["CVE-2025-6985","GHSA-m42m-m8cr-8m58"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-ypxj-nhcp-dkan"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/langchain-text-splitters@0.3.9"}