{"cve":"CVE-2024-7042","nvd":{"published":"2024-10-29T13:15:08.883","modified":"2026-06-17T08:19:15.130","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["https://github.com/langchain-ai/langchainjs/commit/615b9d9ab30a2d23a2f95fb8d7acfdf4b41ad7a6","https://huntr.com/bounties/b612defb-1104-4fff-9fef-001ab07c7b2d"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:56:33.105311382+00:00"},"epss":{"cve":"CVE-2024-7042","score":0.00311,"percentile":0.24036,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6m59-8fmv-m5f9","url":"https://osv.dev/vulnerability/GHSA-6m59-8fmv-m5f9","summary":"@langchain/community SQL Injection vulnerability","modified":"2026-08-07T08:12:12.018963169Z","packages":[{"ecosystem":"npm","name":"@langchain/community","purl":"pkg:npm/%40langchain/community","ranges":["<0.3.3"],"fixed":["0.3.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}