Advisory record · GHSA-m42m-m8cr-8m58

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

CVSS 7.5 HighEPSS 0.0051 · 43rd percentile

Published by the GitHub Advisory Database at 6 Oct 2025, 18:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
langchain-text-splittersPyPI<0.3.90.3.9
Identifiers
GHSA-m42m-m8cr-8m58 · CVE-2025-6985 · PYSEC-2026-1520
Weakness (CWE)
CWE-611
Published
6 Oct 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The langchain-text-splitters package, versions before 0.3.9, is vulnerable to XML External Entity attacks in the HTMLSectionSplitter class because it parses attacker-supplied XSLT stylesheets without hardening. A remote attacker needs no authentication or user interaction in deployments that enable custom XSLT, and could read arbitrary local files or make outbound requests from the LangChain process. Upgrade to langchain-text-splitters 0.3.9 or later.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CNA (@huntr_ai)
  • CISA KEV Not listed.
  • EPSS 0.0051, the 43rd percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.