langchain-community@0.2.12 vulnerabilities

Community contributed LangChain integrations.

Direct Vulnerabilities

Known vulnerabilities in the langchain-community package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
SQL Injection

Affected versions of this package are vulnerable to SQL Injection through the GraphCypherQAChain class. An attacker can manipulate, delete, or create data, disrupt services, and compromise database integrity by injecting malicious SQL commands into prompts.

Note: This vulnerability impacts LangChain developers who:

  1. Have not specified appropriate RBAC controls for their application

  2. Have exposed an endpoint that accepts inputs from a user

How to fix SQL Injection?

Upgrade langchain-community to version 0.2.19 or higher.

[0.2.5,0.2.19)