| Component | LangChain |
| Severity | medium (CVSS 5.9) |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published (NVD) | 2024-03-26 |
| Last modified | 2026-06-17 |
| Affected versions | < 0.1.35 from the CVE Program record written by the CNA that assigned the CVE |
| Fixed in | 0.1.35 |
| Weakness | CWE-776 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis reads >= 0.1.4, <= 0.1.35. The ranges above come from the CVE record written by @huntr_ai, the CNA that assigned the CVE. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).
NVD description
A vulnerability in the langchain-ai/langchain repository allows for a Billion Laughs Attack, a type of XML External Entity (XXE) exploitation. By nesting multiple layers of entities within an XML document, an attacker can cause the XML parser to consume excessive CPU and memory resources, leading to a denial of service (DoS).
What to do
- Upgrade LangChain to
0.1.35or later. - Do not expose the component's API or UI to the internet without authentication in front of it.