# A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain-community version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data...

Advisory record · `GHSA-45pg-36p6-83v9` · Withdrawn

- **Identifiers:** `GHSA-45pg-36p6-83v9` · `CVE-2024-8309` · `PYSEC-2024-115` · `PYSEC-2026-1507`
- **State:** Withdrawn
- **Severity:** CVSS 4.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-89](https://cwe.mitre.org/data/definitions/89.html)
- **Tags:** [SQL injection](https://agentprime.io/advisories/tag/sql-injection.md)
- **Published:** 5 Nov 2024
- **Updated:** 9 Jul 2026
- **Reviewed by a person:** No

**Withdrawn.** The GitHub Advisory Database withdrew this advisory on 9 Jul 2026. The record stays here, marked withdrawn.

Published by the GitHub Advisory Database at 5 Nov 2024, 16:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `langchain` (PyPI): affected `<c2a3021bb0c5f54649d380b42a0684ca5778c255 || <0.2.0`; fixed in `c2a3021bb0c5f54649d380b42a0684ca5778c255`, `0.2.0`
- `langchain-community` (PyPI): affected `>=0.2.0, <0.3.0`; fixed in `0.3.0`

## 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

- 4.9 Medium, CVSS 3.0: `CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`, from CNA (@huntr_ai)

- **CISA KEV:** Not listed.
- **EPSS:** 0.14, the 96th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:04 UTC: First seen by agentprime
- 31 Oct 2026, 15:04 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/PYSEC-2024-115)

## Sources

- [GitHub Advisory Database: GHSA-45pg-36p6-83v9](https://github.com/advisories/GHSA-45pg-36p6-83v9)
- [OSV: GHSA-45pg-36p6-83v9](https://osv.dev/vulnerability/GHSA-45pg-36p6-83v9)
- <https://huntr.com/bounties/8f4ad910-7fdc-4089-8f0a-b5df5f32e7c5>
- <https://github.com/langchain-ai/langchain/commit/c2a3021bb0c5f54649d380b42a0684ca5778c255>
- <https://github.com/advisories/GHSA-45pg-36p6-83v9>

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.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-45pg-36p6-83v9>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-45pg-36p6-83v9/>. Everything for agents: <https://agentprime.io/llms.txt>.
