SQL Injection Affecting langchain package, versions <0.3.3


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LANGCHAIN-8310492
  • published30 Oct 2024
  • disclosed29 Oct 2024
  • creditLiad Levy

Introduced: 29 Oct 2024

CVE-2024-7042  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade langchain to version 0.3.3 or higher.

Overview

langchain is a Typescript bindings for langchain

Affected versions of this package are vulnerable to SQL Injection via the default configuration of the GraphCypherQAChain class, by manipulating entities in the graph database through prompt injection.

CVSS Scores

version 4.0
version 3.1