CVE-2024-1455:
LangChain's XMLOutputParser vulnerable to XML Entity Expansion
5.9
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
3/26/2024
Updated
3/27/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
langchain-core | pip | < 0.1.35 | 0.1.35 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using Python's standard XML parser which is vulnerable to XML Entity Expansion (CWE-776). The patch replaces xml.etree.ElementTree with defusedxml in three key areas: 1) The main parse() method 2) The synchronous _transform() streaming parser 3) The async _atransform() streaming parser. All three functions directly handled XML parsing without proper entity expansion restrictions prior to the patch, making them entry points for denial-of-service attacks via malicious XML payloads.