{"id":"CVE-2024-1455","aliases":["CVE-2024-1455","GHSA-q84m-rmw3-4382","PYSEC-2026-1519"],"related":[],"kind":"vulnerability","state":"published","title":"Billion Laughs Attack leading to DoS in langchain-ai/langchain","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"en","text":"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\n\nThis primarily affects users that combine an LLM (or agent) with the `XMLOutputParser` and expose the component via an endpoint on a web-service. \n\nThis 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.\n\nA successful attack is predicated on:\n\n1. Usage of XMLOutputParser\n2. Passing of malicious input into the XMLOutputParser either directly or by trying to manipulate an LLM to do so on the users behalf\n3. Exposing the component via a web-service","format":"markdown","source":"ghsa"},{"lang":"es","text":"XMLOutputParser en LangChain utiliza el módulo etree del analizador XML en la biblioteca estándar de Python que tiene algunas vulnerabilidades XML; consulte: https://docs.python.org/3/library/xml.html Esto afecta principalmente a los usuarios que combinan un LLM (o agente) con `XMLOutputParser` y exponen el componente a través de un endpoint en un servicio web. Esto permitiría que una parte malintencionada intentara manipular el LLM para producir un payload malicioso para el analizador que comprometería la disponibilidad del servicio. Un ataque exitoso se basa en: 1. Uso de XMLOutputParser 2. Pasar entradas maliciosas al XMLOutputParser, ya sea directamente o intentando manipular un LLM para que lo haga en nombre del usuario 3. Exponer el componente a través de un servicio web","source":"nvd"}],"published":"2024-03-26T14:03:46.647Z","modified":"2026-07-07T17:56:44.869Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-776"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.1.35","status":"affected"}],"vendor":"langchain-ai","product":"langchain-ai/langchain","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.1.35","status":"affected"}],"vendor":"langchain-ai","product":"langchain-ai\\/langchain","cpe":"cpe:2.3:a:langchain-ai:langchain-ai\\/langchain:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.35"}],"ecosystem":"PyPI","package":"langchain-core","purl":"pkg:pypi/langchain-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.1.4","lastAffected":"0.1.35"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.35"}],"ecosystem":"PyPI","package":"langchain-core","purl":"pkg:pypi/langchain-core","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/4353571f-c70d-4bfd-ac08-3a89cecb45b6","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langchain-ai/langchain/commit/727d5023ce88e18e3074ef620a98137d26ff92a3","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1455","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/17250","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/19653","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/19660","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langchain-core","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-q84m-rmw3-4382","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-08-15T15:55:06.717Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-1455","url":"https://www.cve.org/CVERecord?id=CVE-2024-1455","licence":"CVE Terms of Use","modified":"2024-08-15T15:56:19.154Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q84m-rmw3-4382","url":"https://github.com/advisories/GHSA-q84m-rmw3-4382","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:44.869Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-1455","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1455","licence":"Public domain","modified":"2026-06-17T07:04:16.863Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1519","url":"https://osv.dev/vulnerability/PYSEC-2026-1519","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:47.138Z"}],"updatedAt":"2026-11-25T22:58:37.902Z","epss":{"score":0.00764,"percentile":0.56612,"date":"2026-12-01T12:00:22.000Z"}}