Skip to content
SQL injection Disclosed report Intermediate CVE-2025-8709

LangGraph's SQLite store implementation has a SQL Injection Vulnerability

The SQLite store implementation in LangGraph concatenated filter operator values directly into SQL queries without parameterisation. An attacker could inject arbitrary SQL to bypass filters and read all stored documents, including sensitive fields.

langchain-ai/langgraph

Originally disclosed on huntr

A SQL injection vulnerability exists in the langchain-ai/langgraph repository, specifically in the LangGraph's SQLite store implementation. The affected version is langgraph-checkpoint-sqlite 2.0.10. The vulnerability arises from improper handling of filter operators ($eq, $ne, $gt, $lt, $gte, $lte) where direct string concatenation is used without proper parameterization. This allows attackers to inject arbitrary SQL, leading to unauthorized access to all documents, data exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.

From the GitHub Advisory Database (GHSA-4h97-wpxp-3757, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the filter operator values were concatenated into the SQL string instead of being passed as bound parameters.

Impact

An attacker could bypass application-level security filters and access all documents, potentially exfiltrating sensitive fields such as passwords and API keys.

What the attacker needed

Ability to supply filter values to the store

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program builds a database query by gluing user input into the query text, a malicious user can add extra SQL commands. Here, the filter values in a LangGraph SQLite store were glued in, so an attacker could change the query to return everything. This is called SQL injection.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.