{
 "id": "AIR-2024-0192",
 "slug": "cve-2024-7042-langchainjs-graphcypherqachain-sql-injection-v",
 "title": "CVE-2024-7042: LangChainJS GraphCypherQAChain SQL injection vulnerability",
 "summary": "A vulnerability in LangChainJS allows prompt injection to trigger database manipulation and data exfiltration. A patch is available from the maintainers.",
 "type": "attack_on_ai",
 "categories": [
  "prompt_injection",
  "infra_vuln"
 ],
 "severity": 2,
 "targets": [
  "framework_or_tooling"
 ],
 "products": [
  "langchainjs"
 ],
 "incident_date": "2024-10-29",
 "incident_date_precision": "day",
 "first_reported": "2024-10-29",
 "sources": [
  {
   "url": "https://github.com/advisories/GHSA-6m59-8fmv-m5f9",
   "publisher": "GitHub Advisory Database",
   "title": "CVE-2024-7042: @langchain/community SQL Injection vulnerability",
   "published_at": "2024-10-29"
  },
  {
   "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-7042",
   "publisher": "NVD",
   "title": "CVE-2024-7042: A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class…",
   "published_at": "2024-10-29"
  }
 ],
 "source_count": 2,
 "confidence": 0.95,
 "status": "published",
 "origin": "seed_ghsa",
 "tags": [
  "CVE-2024-7042",
  "sql-injection",
  "prompt-injection"
 ],
 "created_at": "2026-10-18T07:00:14.101Z",
 "updated_at": "2026-10-18T10:04:21.885Z"
}
