Severity by source
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Network access required; AC:H for mandatory prefix-overlap or wildcard-label precondition; PR:L for authenticated API caller; C:H in multi-tenant scope; no integrity or availability impact confirmed.
Primary rating from Vendor (https://github.com/langchain-ai/langgraph).
CVSS VectorVendor: https://github.com/langchain-ai/langgraph
Lifecycle Timeline
2Blast Radius
ecosystem impact- 1 pypi packages depend on langgraph-checkpoint-postgres (1 direct, 0 indirect)
- 232 pypi packages depend on langgraph-checkpoint-sqlite (192 direct, 43 indirect)
Ecosystem-wide dependent count for version 3.1.1 and other introduced versions.
DescriptionCVE.org
Summary
The Postgres and SQLite stores persist hierarchical namespaces as a dot-joined string (("memories", "alice") becomes memories.alice) and scoped reads by matching that string with LIKE '<path>%'. Because LIKE has no notion of the . separator, a scoped search or list_namespaces also matched sibling namespaces whose flattened form shares leading characters.
Applications commonly use the namespace as a tenant boundary. Where they do, a read scoped to one namespace could return items belonging to another, without any crafted input - an ordinary scoped request was sufficient.
We have no evidence of this behavior being exploited in the wild.
Affected users / systems
You may be affected if you:
- use
PostgresStore/AsyncPostgresStoreorSqliteStore/AsyncSqliteStore, and - rely on the namespace to separate data between users or tenants, and
- have namespace labels where one is a prefix of another (
1and12,aliceandalice2), or labels containing_or%
Applications whose namespace labels are fixed-length identifiers such as UUIDs, containing no _ or %, are not affected - no such label can be a prefix of another. InMemoryStore compares namespaces element-wise and is not affected.
Three distinct cases were possible:
- Sibling namespaces. A read scoped to
("foo",)also returned items under("foobar",)and("foo2",). - Unescaped pattern metacharacters.
_and%are legal namespace labels - only.is rejected - but were interpolated into the match pattern unescaped, so("user_1",)also matched("userX1",). - Suffix conditions.
list_namespaces(suffix=("alice",))also matched the sibling leafusers.malice.
This is not SQL injection. Values were passed as bound parameters and never interpolated into statement text; the bound value *was itself* a LIKE pattern whose metacharacters were not neutralized.
Impact
- Confidentiality: disclosure of stored items belonging to namespaces outside the caller's intended scope, where namespaces are used as a tenant or user boundary.
- No integrity or availability impact.
get,put, anddeletecompare namespaces with=and were never affected; the issue is limited to read paths.
Patches / mitigation
Prefix scoping now matches the namespace exactly or requires the . separator before any remainder, pattern metacharacters in labels are escaped, and list_namespaces uses segment-aware matching for both prefix and suffix conditions.
On SQLite, the descendant match moved from LIKE to GLOB. LIKE is case-insensitive for ASCII in SQLite, so scoped reads previously matched namespaces differing only in case, while get/put/delete treated them as distinct. Search now agrees with them.
Upgrade to langgraph-checkpoint-postgres 3.1.1 or langgraph-checkpoint-sqlite 3.1.1.
Compatibility
* in a list_namespaces match path now spans exactly one namespace segment. This restores the documented behavior - NamespacePath documents ("cache", "*", "v1") as "any cache category with v1 version" - and matches InMemoryStore. Multi-segment matching was an artifact of translating * into a SQL % wildcard, the same mechanism responsible for this issue, and could not be preserved while fixing it.
Callers relying on the previous behavior can express "match at any depth" by combining both match conditions, which are ANDed:
list_namespaces(prefix=["uid"], suffix=["alice"])Applications whose namespace labels cannot be prefixes of one another see no behavioral change.
Operational guidance
- Prefer fixed-length namespace labels such as UUIDs, so no label can be a prefix of another.
- Where labels are user-supplied, validate them at the boundary rather than relying on scoping alone.
LangSmith / hosted deployments note
Unlike previous store advisories, this issue does reach hosted deployments. LangSmith deployments default to LANGGRAPH_STORE_BACKEND=python, which uses AsyncPostgresStore from checkpoint-postgres. Deployments configured with LANGGRAPH_STORE_BACKEND=grpc use a separate implementation that received an equivalent fix.
AnalysisAI
Cross-tenant namespace disclosure in LangGraph's PostgreSQL and SQLite checkpoint stores allows an authenticated low-privileged user to read stored items belonging to other namespaces without any crafted input. The flaw arises from translating hierarchical namespaces into dot-joined strings and scoping reads with SQL LIKE patterns that have no understanding of the segment separator, so a query scoped to 'foo' also returns data from 'foobar' or 'foo2'. Exploitation requires the specific precondition of prefix-overlapping or wildcard-containing namespace labels; no public exploit code exists and the vendor confirms no evidence of in-the-wild exploitation.
Technical ContextAI
LangGraph's PostgresStore/AsyncPostgresStore and SqliteStore/AsyncSqliteStore (pkg:pip/langgraph-checkpoint-postgres and pkg:pip/langgraph-checkpoint-sqlite) represent hierarchical namespace tuples as dot-concatenated strings stored in a prefix column. Scoped read operations (search, list_namespaces) built SQL LIKE patterns from these strings-e.g., 'foo%' to scope to the 'foo' namespace-without accounting for three related problems: (1) LIKE has no concept of the '.' segment separator, so 'foo%' also matches 'foobar'; (2) namespace labels containing the LIKE metacharacters '_' and '%' were interpolated unescaped into the pattern, allowing unintended cross-matches such as '(user_1,)' matching '(userX1,)'; and (3) list_namespaces suffix conditions suffered the same boundary confusion. This is classified as CWE-200 (Exposure of Sensitive Information). Notably this is not SQL injection-values were correctly used as bound parameters; the defect is that the bound value was itself a LIKE pattern with unescaped wildcards. The patch (PR #8478, commit 66ebe1a) introduces _namespace_prefix_condition() using an exact-match OR anchored LIKE with escaping, replaces LIKE with POSIX regex (~ operator) for list_namespaces, and on SQLite switches descendant matching from LIKE to GLOB to also fix a case-insensitivity inconsistency. InMemoryStore was never affected because it compares namespace tuples element-wise.
RemediationAI
Upgrade to langgraph-checkpoint-postgres 3.1.1 or langgraph-checkpoint-sqlite 3.1.1 as appropriate; both are available on PyPI and tagged at https://github.com/langchain-ai/langgraph/releases/tag/checkpointpostgres%3D%3D3.1.1 and https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D3.1.1. The fix is confirmed in PR #8478 (commit 66ebe1a). If immediate upgrade is not possible, two compensating controls reduce exposure with meaningful trade-offs: first, enforce fixed-length namespace labels such as UUIDs at the application boundary-this prevents any label from being a prefix of another and eliminates the LIKE boundary confusion, though it requires a namespace migration if variable-length labels are already in use; second, validate namespace labels at ingestion to reject any label containing '_' or '%' characters-this blocks the metacharacter case but does not protect against the sibling-prefix case when labels share leading characters. Neither workaround protects against the suffix condition in list_namespaces if labels can share suffixes. Note that CVSS 4.0's AT:P (Attack Requirements: Present) designation reflects that these workarounds genuinely reduce exposure to near-zero for conforming deployments; upgrade remains the authoritative fix.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Same weakness CWE-200 – Information Exposure
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-54227
GHSA-47pj-3jcm-6whg