CVE-2024-7042 - CVE House
Back to Database
Status published Medium CVE-2024-7042

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

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-7042

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

langchain-ai

View all reports →

Affected Software

langchain-ai/langchainjs
Vulnerable Versions:
unspecified

Timeline

Official Publish: October 29th, 2024
Last Modified: October 15th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Weaknesses (CWE)