Advisory

GHSA-8h5w-f6q9-wg35

Also known as: CVE-2023-32785, PYSEC-2026-372

Summary

Langchain SQL Injection vulnerability

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-10-21 00:30 UTC
Modified
2026-10-27 17:45 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.247 (ecosystem)

Fixed versions

0.0.247

Fix

  • Fixed version 0.0.247
    pip install --upgrade langchain==0.0.247

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences