-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Vulnerable Library - langchain_text_splitters-0.3.5-py3-none-any.whl
LangChain text splitting utilities
Library home page: https://files.pythonhosted.org/packages/4b/83/f8081c3bea416bd9d9f0c26af795c74f42c24f9ad3c4fbf361b7d69de134/langchain_text_splitters-0.3.5-py3-none-any.whl
Path to dependency file: /apps/browser-agent/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20251119015940_IZVAQU/python_MOZZFA/20251119015945/83/langchain_text_splitters-0.3.5-py3-none-any.whl
Vulnerabilities
| Vulnerability | Severity | Dependency | Type | Fixed in (langchain_text_splitters version) | Remediation Possible** | |
|---|---|---|---|---|---|---|
| CVE-2025-6985 | 7.5 | langchain_text_splitters-0.3.5-py3-none-any.whl | Direct | 0.3.9 | ❌ |
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2025-6985
Vulnerable Library - langchain_text_splitters-0.3.5-py3-none-any.whl
LangChain text splitting utilities
Library home page: https://files.pythonhosted.org/packages/4b/83/f8081c3bea416bd9d9f0c26af795c74f42c24f9ad3c4fbf361b7d69de134/langchain_text_splitters-0.3.5-py3-none-any.whl
Path to dependency file: /apps/browser-agent/requirements.txt
Path to vulnerable library: /tmp/ws-ua_20251119015940_IZVAQU/python_MOZZFA/20251119015945/83/langchain_text_splitters-0.3.5-py3-none-any.whl
Dependency Hierarchy:
- ❌ langchain_text_splitters-0.3.5-py3-none-any.whl (Vulnerable Library)
Found in base branch: main
Vulnerability Details
The HTMLSectionSplitter class in langchain-text-splitters version 0.3.8 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.
Publish Date: 2025-10-06
URL: CVE-2025-6985
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: None
- Availability Impact: None
Suggested Fix
Type: Upgrade version
Origin: GHSA-m42m-m8cr-8m58
Release Date: 2025-10-06
Fix Resolution: 0.3.9
Step up your Open Source Security Game with Mend here