@langchain/community SQL Injection vulnerability
CVE-2024-7042 · GHSA-6m59-8fmv-m5f9 · published 2024-10-29 · updated 2024-11-01
- Severity
- Low
- CVSS score
- 4.9
- Chance of exploitation (EPSS)
- 0.31%
- Fixed in
- 0.3.3
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade @langchain/community to 0.3.3 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @langchain/community | npm | < 0.3.3 | 0.3.3 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- MediumLangChain Community: redirect chaining can lead to SSRF bypass via RecursiveUrlLoader@langchain/community
- Medium@langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation@langchain/community
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.