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.
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
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 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
- 31 Oct 2026, 14:07 UTC First seen by agentprime
- 31 Oct 2026, 14:07 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-8h5w-f6q9-wg35
- OSV: GHSA-8h5w-f6q9-wg35
- nvd.nist.gov/vuln/detail/CVE-2023-32785
- github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841
- gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f
- github.com/langchain-ai/langchain
- github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2026-372.yaml
- pypi.org/project/langchain