CVE-2026-71433
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
LangGraph Checkpoint Postgres and SQLite Checkpoint are the Postgres and SQLite implementations of LangGraph's checkpoint saver. Prior to 3.1.1, the langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite packages persisted hierarchical namespaces as a dot joined string and scoped reads by matching that string as a simple prefix pattern, so a read scoped to one namespace could also match a sibling namespace whose flattened form shares the same leading characters, or a namespace label containing unescaped pattern metacharacters, allowing an authenticated caller to retrieve stored items belonging to another tenant or user through an ordinary scoped search or list namespaces call, with no crafted input required. This issue is fixed in versions 3.1.1 of langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.3
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
LangGraph Checkpoint Postgres and SQLite Checkpoint are the Postgres and SQLite implementations of LangGraph's checkpoint saver. Prior to 3.1.1, the langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite packages persisted hierarchical namespaces as a dot joined string and scoped reads by matching that string as a simple prefix pattern, so a read scoped to one namespace could also match a sibling namespace whose flattened form shares the same leading characters, or a namespace label containing unescaped pattern metacharacters, allowing an authenticated caller to retrieve stored items belonging to another tenant or user through an ordinary scoped search or list namespaces call, with no crafted input required. This issue is fixed in versions 3.1.1 of langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite.
- Record
CVE-2026-71433- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-863
- Updated
- 2026-11-02
EUVDEUVD-2026-54227
5.3
LangGraph Checkpoint Postgres and SQLite Checkpoint are the Postgres and SQLite implementations of LangGraph's checkpoint saver. Prior to 3.1.1, the langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite packages persisted hierarchical namespaces as a dot joined string and scoped reads by matching that string as a simple prefix pattern, so a read scoped to one namespace could also match a sibling namespace whose flattened form shares the same leading characters, or a namespace label containing unescaped pattern metacharacters, allowing an authenticated caller to retrieve stored items belonging to another tenant or user through an ordinary scoped search or list namespaces call, with no crafted input required. This issue is fixed in versions 3.1.1 of langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite.
- Record
EUVD-2026-54227- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-47pj-3jcm-6whg
5.3
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
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,…
- Record
GHSA-47pj-3jcm-6whg- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-863
- Updated
- 2026-11-02
NVD
5.3
LangGraph Checkpoint Postgres and SQLite Checkpoint are the Postgres and SQLite implementations of LangGraph's checkpoint saver. Prior to 3.1.1, the langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite packages persisted hierarchical namespaces as a dot joined string and scoped reads by matching that string as a simple prefix pattern, so a read scoped to one namespace could also match a sibling namespace whose flattened form shares the same leading characters, or a namespace label containing unescaped pattern metacharacters, allowing an authenticated caller to retrieve stored items belonging to another tenant or user through an ordinary scoped search or list namespaces call, with no crafted input required. This issue is fixed in versions 3.1.1 of langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite.
- Record
CVE-2026-71433- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-863
- Updated
- 2026-11-02
OSV
5.3
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
LangGraph Checkpoint Postgres and SQLite Checkpoint are the Postgres and SQLite implementations of LangGraph's checkpoint saver. Prior to 3.1.1, the langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite packages persisted hierarchical namespaces as a dot joined string and scoped reads by matching that string as a simple prefix pattern, so a read scoped to one namespace could also match a sibling namespace whose flattened form shares the same leading characters, or a namespace label containing unescaped pattern metacharacters, allowing an authenticated caller to retrieve stored items belonging to another tenant or user through an ordinary scoped search or list namespaces call, with no crafted input required. This issue is fixed in versions 3.1.1 of langgraph-checkpoint-postgres and langgraph-checkpoint-sqlite.
- Record
CVE-2026-71433- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-863
- Updated
- 2026-11-02
OSVGHSA-47pj-3jcm-6whg
5.3
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
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,…
- Record
GHSA-47pj-3jcm-6whg- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-863
- Updated
- 2026-11-02
OSVPYSEC-2026-3635
5.3
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
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,…
- Record
PYSEC-2026-3635- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVPYSEC-2026-3636
5.3
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
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,…
- Record
PYSEC-2026-3636- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
langgraph-checkpoint-postgresPyPI |
before 3.1.1 | 3.1.1 |
langgraph-checkpoint-sqlitePyPI |
before 3.1.1 | 3.1.1 |
langgraph-checkpoint-postgresPyPI |
before 3.1.1, plus listed versions 1.0.01.0.11.0.101.0.111.0.2 Show 43 moreShow less1.0.31.0.41.0.51.0.61.0.71.0.81.0.92.0.02.0.12.0.102.0.112.0.122.0.132.0.142.0.152.0.162.0.172.0.182.0.192.0.22.0.202.0.212.0.222.0.232.0.242.0.252.0.32.0.42.0.52.0.62.0.72.0.82.0.93.0.03.0.13.0.23.0.33.0.43.0.53.1.03.1.0a13.1.0a33.1.0a4 |
3.1.1 |
langgraph-checkpoint-sqlitePyPI |
before 3.1.1, plus listed versions 1.0.01.0.11.0.21.0.31.0.4 Show 18 moreShow less2.0.02.0.12.0.102.0.112.0.22.0.32.0.42.0.52.0.62.0.72.0.82.0.93.0.03.0.13.0.23.0.33.1.03.1.0a1 |
3.1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-71433 is a medium vulnerability (CVSS 5.3) in Langchain-ai Langgraph, published August 6, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.36%, the 30th percentile. Fixed in langgraph-checkpoint-postgres 3.1.1.
References
github.com/langchain-ai/langgraph/security/advisories/GHSA-47pj-3jcm-6whg
github.com/langchain-ai/langgraph/pull/8478
github.com/langchain-ai/langgraph/commit/66ebe1a0da921e73f0f9f879ba105d314c079f7c
github.com/langchain-ai/langgraph/releases/tag/checkpointpostgres%3D%3D3.1.1
github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D3.1.1
github.com/advisories/GHSA-47pj-3jcm-6whg
Left out here: the rest of 4 source descriptions. The JSON record has them.