# CVE-2025-6985: PYSEC-2026-1520 - LangChain Text Splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing

Source: https://junglewise.ai/threats/cve-2025-6985-langchain-text-splitters-is-vulnerable-to-xml-external-entity-xxe  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2025-6985 · Severity: low · CVSS 3 · Published 2026-07-07

LangChain Text Splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing

Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-6985 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-6985 being exploited in the wild.

**How severe is CVE-2025-6985?** Low severity, with a CVSS score of 3, published 7 July 2026.

**Which products and versions are affected?** langchain-text-splitters (PyPI) ECOSYSTEM:introduced=0,fixed=0.3.9.

**Is there a fix for CVE-2025-6985?** Yes. langchain-text-splitters (PyPI): upgrade to 0.3.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-6985?** Check whether you run langchain-text-splitters (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- langchain-text-splitters (PyPI): upgrade to 0.3.9 or later

  ```sh
  pip install "langchain-text-splitters>=0.3.9"
  ```


## Affected products

- langchain-text-splitters (PyPI) ECOSYSTEM:introduced=0,fixed=0.3.9

## Identifiers

- CVE-2025-6985
- GHSA-m42m-m8cr-8m58
- PYSEC-2026-1520

## Related threats

- [LangChain langchain-text-splitters SSRF redirect bypass in HTMLHeaderTextSplitter](https://junglewise.ai/threats/cve-2026-41481-langchain-langchain-text-splitters-ssrf-redirect-bypass-in)
