7.5

CVE-2025-6985: XXE Vulnerability in langchain-ai/langchain

Deferred
AliasesGHSA-m42m-m8cr-8m58PYSEC-2026-1520CGA-9x7r-7m2q-57g7
Published 06-10-2025Last modified 06-10-2025

Vulnerability summary

CVE-2025-6985 is a high (CVSS 7.5) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 45.8% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.0 (CVE.org)
EPSS score
0.52%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 06-10-2025
    PublishedVulnerability first disclosed.
  2. 06-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.52%

Chance of exploitation in the next 30 days

Percentile

46%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.51% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard8 products
  • open-webui< 0.6.33-r0
  • open-webui-compat< 0.6.33-r0
  • py3-langchain-text-splitters< 0.3.11-r0
  • py3-supported-langchain-text-splitters< 0.3.11-r0
  • py3.10-langchain-text-splitters< 0.3.11-r0
Wolfi2 products
  • open-webui< 0.6.33-r0
  • open-webui-compat< 0.6.33-r0
Langchain-ai1 product
PyPI1 product
  • langchain-text-splitters< 0.3.9

4 vendors · 12 products

References

7 links