Vulnerabilities · 2024 · Langchain
CVE-2024-1455
Langchain vulnerability
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).
Affected products
Langchain. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Langchain runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/langchain-ai/langchain/commit/727d5023ce88e18e3074ef620a98137d26ff92a3 · Patch
- huntr.com/bounties/4353571f-c70d-4bfd-ac08-3a89cecb45b6 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-1455
- github.com/langchain-ai/langchain/pull/17250
- github.com/langchain-ai/langchain/pull/19653
- github.com/langchain-ai/langchain/pull/19660
- github.com/advisories/GHSA-q84m-rmw3-4382
- nvd.nist.gov/vuln/detail/CVE-2024-1455
- cve.org/CVERecord?id=CVE-2024-1455
More vulnerabilities in Langchain products
CVE-2025-68665CVE-2025-68664CVE-2025-2828CVE-2024-58340CVE-2024-46946CVE-2024-38459CVE-2024-28088CVE-2024-27444All 34
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.