LangChain Text Splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing
The HTMLSectionSplitter class in langchain-text-splitters parses user-supplied XSLT stylesheets without hardening, so external entities and the XSLT document() function can resolve arbitrary URIs. An unauthenticated attacker could read local files or make outbound HTTP(S) requests from the LangChain process.
langchain-ai/langchain
High