Security mailing lists by PureSourceCode

CVE-2024-7042

CRITICAL 9.8CVSS 3.1

@langchain/community SQL Injection vulnerability

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.

Published
29 Oct 2024
Last modified
7 Aug 2026
Assigned by
security@huntr.dev
NVD status
Analyzed
Weakness
CWE-89
Also known as
GHSA-6m59-8fmv-m5f9
Sources
NVDJSONOSV GHSA-6m59-8fmv-m5f9JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD security@huntr.dev (Secondary) CVSS 3.0 MEDIUM 4.9 CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.0 MEDIUM 4.9 CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD langchain langchain
cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*
< 0.3.1 0.3.1
OSV npm @langchain/community < 0.3.3 0.3.3

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 29 Oct 2024)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 29 Oct 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.