CVE-2025-6985
Last modified
CVE-2025-6985 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.61% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-6985?
How severe is CVE-2025-6985?
How do I fix CVE-2025-6985?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-69821An issue in Beat XP VEGA Smartwatch (Firmware Version - RB30…7.4
- CVE-2025-69822An issue in Atomberg Atomberg Erica Smart Fan Firmware Versi…7.4
- CVE-2025-69828File Upload vulnerability in TMS Global Software TMS Managem…10
- CVE-2025-6983A Clickjacking vulnerability in TP-Link Archer C1200 web m…5.1
- CVE-2025-6984The langchain-ai/langchain project, specifically the EverNot…7.5
- CVE-2025-69848NetBox is an open-source infrastructure resource modeling an…5.4
- CVE-2025-6986The FileBird – WordPress Media Library Folders & File Manage…6.5
- CVE-2025-6987The Advanced iFrame plugin for WordPress is vulnerable to St…6.4
- CVE-2025-69871A race condition vulnerability exists in MedusaJS Medusa v2.…8.1
- CVE-2025-69872DiskCache (python-diskcache) through 5.6.3 uses Python pickl…9.8
- CVE-2025-69873ajv (Another JSON Schema Validator) before 8.18.0 is vulnera…2.9
- CVE-2025-69874nanotar through 0.2.0 has a path traversal vulnerability in …9.8
Are you affected by CVE-2025-6985?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
