SCA: security update for langchain-text-splitters (GHSA-m42m-m8cr-8m58)

high Tenable Self-Hosted Container Security Plugin ID 435535

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2025-6985)

See Also

https://github.com/advisories/GHSA-m42m-m8cr-8m58

Plugin Details

Severity: High

ID: 435535

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 10/8/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.92

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2025-6985

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/6/2025

Vulnerability Publication Date: 10/6/2025

Reference Information

CVE: CVE-2025-6985

cwe: CWE-611