Advisory record · GHSA-8h5w-f6q9-wg35

Langchain SQL Injection vulnerability

CVSS 9.8 CriticalCritical

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 21 Oct 2023, 00:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
langchainPyPI<0.0.2470.0.247
Identifiers
GHSA-8h5w-f6q9-wg35 · CVE-2023-32785 · PYSEC-2026-372
Weakness (CWE)
CWE-74 · CWE-89
Published
21 Oct 2023
Updated
27 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The langchain package on PyPI is vulnerable in versions before 0.0.247. The source describes a prompt injection flaw that allows execution of arbitrary code against the SQL service provided by the chain, though it gives few details about the exact conditions or required access. Upgrade langchain to version 0.0.247 or later, which is listed as the fixed version.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 14:07 UTC First seen by agentprime
  2. 31 Oct 2026, 14:07 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.