Low

@langchain/community SQL Injection vulnerability

  • Disclosed: 29.10.2024
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @langchain/community < 0.3.3 0.3.3

References

CVSS score 4.9/10
CVSS vector
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-89
Platform
npm
Package
@langchain/community
Disclosed
29.10.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-6m59-8fmv-m5f9 - CC BY 4.0

Vulnerability history: @langchain/community

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
10.2024 02.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 2
  • Low 1

Disclosures per year

  1. 2024: 1
  2. 2025: 0
  3. 2026: 2
  1. @langchain/community SQL Injection vulnerability this entry
    Low · 4.9 CVE-2024-7042 < 0.3.3 0.3.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.