CVE-2024-1455
MEDIUM 5.9CVSS 3.1LangChain's XMLOutputParser vulnerable to XML Entity Expansion
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).
- Published
- 26 Mar 2024
- Last modified
- 7 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-776
- Also known as
- GHSA-q84m-rmw3-4382PYSEC-2026-1519
- Sources
- NVDJSONOSV GHSA-q84m-rmw3-4382JSONOSV PYSEC-2026-1519JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | langchain | langchaincpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:* |
>= 0.1.4, <= 0.1.35 | |
| OSV | PyPI | langchain-core | < 0.1.35 | 0.1.35 |
References
- https://github.com/langchain-ai/langchain/commit/727d5023ce88e18e3074ef620a98137d26ff92a3 · Patch, WEB
- https://huntr.com/bounties/4353571f-c70d-4bfd-ac08-3a89cecb45b6 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-1455 · ADVISORY
- https://github.com/langchain-ai/langchain/pull/17250 · WEB
- https://github.com/langchain-ai/langchain/pull/19653 · WEB
- https://github.com/langchain-ai/langchain/pull/19660 · WEB
- https://github.com/langchain-ai/langchain · PACKAGE
- https://pypi.org/project/langchain-core · PACKAGE
- https://github.com/advisories/GHSA-q84m-rmw3-4382 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 26 Mar 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Mar 2024)