LangChainPublished 26 Mar 2024NVD status: Analyzed

CVE-2024-1455

A vulnerability in the langchain-ai/langchain repository allows for a Billion Laughs Attack, a type of XML External Entity (XXE) exploitation.

ComponentLangChain
Severitymedium (CVSS 5.9)
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Published (NVD)2024-03-26
Last modified2026-06-17
Affected versions
< 0.1.35
from the CVE Program record written by the CNA that assigned the CVE
Fixed in0.1.35
WeaknessCWE-776
CISA KEVnot 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.35 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources