AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

LangChainGHSA-6m59-8fmv-m5f9

@langchain/community SQL Injection vulnerability

LangChain

CVE-2024-7042 · Published Oct 29, 2024 · updated Aug 7, 2026

Low4.9
Fix: upgrade to 0.3.3 or later
GitHub advisory

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.

Affected versions

PackageAffectedFixed in
@langchain/community
npm
< 0.3.30.3.3
Details and references

More LangChain advisories

All LangChain