PyPI: langchain

CVE-2023-32785

Safety vulnerability ID: SFTY-20231021-46511

In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.

Created at: Oct 11, 2025Updated at: Oct 11, 2025

Overview

Langchain SQL Injection vulnerability

Advisory

Langchain SQL Injection vulnerability

Affected Package

Affecting langchain package, versions
< 0.0.247

Also affects

---

How to Fix

Upgrade
langchain
to
0.0.247
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more