Skip to content
LangChainGHSA-q84m-rmw3-4382

LangChain's XMLOutputParser vulnerable to XML Entity Expansion

Medium5.9CVE-2024-1455 · Published Mar 26, 2024 · updated Jul 7, 2026

The XMLOutputParser in LangChain uses the etree module from the XML parser in the standard python library which has some XML vulnerabilities; see: https://docs.python.org/3/library/xml.html This primarily affects users that combine an LLM (or agent) with the `XMLOutputParser` and expose the component via an endpoint on a web-service. This would allow a malicious party to attempt to manipulate the LLM to produce a malicious payload for the parser that would compromise the availability of the service. A successful attack is predicated on: 1. Usage of XMLOutputParser 2. Passing of malicious input into the XMLOutputParser either directly or by trying to manipulate an LLM to do so on the users behalf 3. Exposing the component via a web-service

GitHub advisory

Affected versions

PackageAffectedFixed in
langchain-core
PyPI
< 0.1.350.1.35
Details and references

More LangChain advisories

All LangChain
Advisory
Server-Side Request Forgery in langchain-community.retrievers.web_research.WebResearchRetriever
Medium4.8Jun 6, 2024
langchain vulnerable to path traversal
Medium6.5Apr 16, 2024
LangChain directory traversal vulnerability
LowMar 4, 2024
LangChain: server-side request forgery
Critical9.8Mar 1, 2024
LangChain Experimental vulnerable to arbitrary code execution
Critical9.8Feb 26, 2024
langchain Server-Side Request Forgery vulnerability
Low3.7Feb 26, 2024

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.