Skip to main content
← All vulnerabilities
CVE-2024-7042GHSA-6M59-8FMV-M5F9

Prompt Injection in langchain-ai/langchainjs Leading to SQL Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.1, 0.3.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • langchain-ai langchain-ai/langchainjs

    fixed in 0.3.1

  • @langchain/communitynpm

    fixed in 0.3.3

References 2

huntr.com

GitHub · langchain-ai/langchainjs