| Component | LangChain |
| Severity | critical (CVSS 9.8) |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published (NVD) | 2024-10-29 |
| Last modified | 2026-06-17 |
| Affected versions | < 0.3.1 from the CVE Program record written by the CNA that assigned the CVE |
| Fixed in | 0.3.1 |
| Weakness | CWE-89 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis gives the same ranges as the CVE record written by @huntr_ai, the CNA that assigned the CVE.
NVD description
A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injection, leading to SQL injection. This vulnerability permits unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.
What to do
- Upgrade LangChain to
0.3.1or later. - Do not expose the component's API or UI to the internet without authentication in front of it.