---
id: "CVE-2026-115883"
kind: "vulnerability"
aliases: ["CVE-2026-115883", "GHSA-6hmw-9432-67qq"]
title: "LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite stores"
severity: "medium"
cvss: 6.0
epss: 0.00414
exploited: false
status: "open"
category: "package"
products: [{"name": "langgraph-checkpoint-postgres", "fixed": ["3.1.3"], "affected": "< 3.1.3", "ecosystem": "pypi"}, {"name": "langgraph-checkpoint-sqlite", "fixed": ["3.1.2"], "affected": "< 3.1.2", "ecosystem": "pypi"}]
ecosystems: ["pypi"]
tags: ["ai-agents", "cwe-20", "cwe-863", "langgraph", "multi-tenant", "package", "postgres", "python", "sqlite"]
not_affected_if: ["in-memory-store", "no-untrusted-namespace-input", "static-namespaces"]
published_at: "2026-10-23T22:06:44+00:00"
first_seen_at: "2026-10-23T22:15:56+00:00"
updated_at: "2026-10-25T06:54:11+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-6hmw-9432-67qq", "first_seen_at": "2026-10-23T22:15:56+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-115883", "first_seen_at": "2026-10-23T22:29:04+00:00"}]
---

# LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite stores

Postgres and SQLite LangGraph checkpoint stores join namespace labels with dots, so a label containing a dot can address another namespace. A caller who can pass such a label can read, overwrite or delete items belonging to another namespace.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:langgraph-checkpoint-postgres affected < 3.1.3 fixed 3.1.3
- pypi:langgraph-checkpoint-sqlite affected < 3.1.2 fixed 3.1.2

## How to check

- Run `pip show langgraph-checkpoint-postgres langgraph-checkpoint-sqlite` and compare the versions with the fixed ones
- Search your code for `PostgresStore`, `AsyncPostgresStore`, `SqliteStore` or `AsyncSqliteStore` and check whether user input can become a namespace label

## Fix

- Upgrade `langgraph-checkpoint-postgres` to `3.1.3` or later
- Upgrade `langgraph-checkpoint-sqlite` to `3.1.2` or later
- Both fixed releases require `langgraph-checkpoint` `4.3.0`
- LangSmith self-hosted deployments: upgrade the Agent Server to `0.15.5` or `0.16.2` or later (LangSmith Cloud is already patched or patches on next revision)

## Timeline

- 2026-10-23T22:15:56+00:00 ghsa https://github.com/advisories/GHSA-6hmw-9432-67qq
- 2026-10-23T22:29:04+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-115883

## From the sources

### Summary

The Postgres and SQLite stores save a namespace as its labels joined with `.`, so `("tenant", "bob")` and `("tenant.bob",)` map to the same stored namespace. `put` rejected labels containing `.`, but `get`, `search`, `delete`, `list_namespaces`, their async versions, and ops passed directly to `batch`/`abatch` did not. A caller that could pass such a label could read, overwrite or delete items in another namespace.

### Details

`BaseStore` checked namespace labels only in `put`/`aput`. The other methods passed the namespace on unchecked, and `batch`/`abatch` checked nothing, including the `PutOp` items inside them. `PostgresStore`, `AsyncPostgresStore`, `SqliteStore` and `AsyncSqliteStore` turn a namespace into text with `".".join(namespace)`, so a label containing `.` resolved to the namespace whose labels it spells out:

- `get(("tenant.bob",), key)`, `search(("tenant.bob",))` and `list_namespaces(prefix=("tenant.bob",))` returned data stored under `("tenant", "bob")`.
- `delete(("tenant.alice",), key)` deleted the item stored under `("tenant", "alice")`.
- `batch([PutOp(("tenant.bob",), key, value)])` overwrote the item stored under `("tenant", "bob")`.

All releases of `langgraph-checkpoint-postgres` before 3.1.3 and `langgraph-checkpoint-sqlite` before 3.1.2 are affected. `InMemoryStore` compares namespaces as tuples and is not affected.

### Impact

You may be affected if you use one of these stores, rely on namespaces to keep users or tenants apart, and let untrusted input choose a namespace label that reaches a read, delete or `batch` call. Such input could read, overwrite or delete another tenant's items. Labels written through `put` could never contain `.`, so no stored data becomes unreachable after upgrading.

LangSmith Deployment: the HTTP store API already rejected such labels, but store calls made from graph code reached the same flaw. The Agent Server rejects these labels from versions 0.15.5 and 0.16.2. On LangSmith Cloud, new deployments and revisions already include the fix and existing deployments get it on their next revision; self-hosted deployments should upgrade.

### Remediation

Upgrade to `langgraph-checkpoint-postgres` 3.1.3 or `langgraph-checkpoint-sqlite` 3.1.2. Both require `langgraph-checkpoint` 4.3.0, where `get`, `search`, `delete` and `list_namespaces` reject labels that are empty, are not strings, or contain `.` with `InvalidNamespaceError`, and the Postgres and SQLite stores apply the same check to every op passed to `batch`/`abatch`. Stores outside this repository that turn namespaces into delimited text can call `langgraph.store.base.validate_op_namespace` for each op they run.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
