9.8

CVE-2024-7042: langchain-ai langchain-ai/langchainjs SQL Injection

CVSS: 9.8v3.1CriticalAnalyzed
AliasesGHSA-6m59-8fmv-m5f9
Published 29-10-2024Last modified 15-10-2025

Vulnerability summary

CVE-2024-7042 is a critical (CVSS 9.8) SQL Injection vulnerability in langchain-ai langchain-ai/langchainjs. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 22.5% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.31%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 29-10-2024
    PublishedVulnerability first disclosed.
  2. 15-10-2025
    Last modifiedVulnerability information updated.

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 metrics

5 scores · 3 sources · 3 versions

EPSS trend

Probability

0.31%

Chance of exploitation in the next 30 days

Percentile

23%

Versus all other CVEs

30-day change

0.00 pp

From 0.31% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.31%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

@langchain1 product
  • community< 0.3.3
Langchain1 product
Langchain-ai1 product

3 vendors · 3 products

References

5 links