{"id":"GHSA-6hmw-9432-67qq","summary":"LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite stores","details":"### Summary\n\nThe 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.\n\n### Details\n\n`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:\n\n- `get((\"tenant.bob\",), key)`, `search((\"tenant.bob\",))` and `list_namespaces(prefix=(\"tenant.bob\",))` returned data stored under `(\"tenant\", \"bob\")`.\n- `delete((\"tenant.alice\",), key)` deleted the item stored under `(\"tenant\", \"alice\")`.\n- `batch([PutOp((\"tenant.bob\",), key, value)])` overwrote the item stored under `(\"tenant\", \"bob\")`.\n\nAll 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.\n\n### Impact\n\nYou 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.\n\nLangSmith 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.\n\n### Remediation\n\nUpgrade 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.","aliases":["CVE-2026-115883"],"modified":"2026-10-23T22:15:03.645110544Z","published":"2026-10-23T22:06:44Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-10-23T22:06:44Z","nvd_published_at":null,"cwe_ids":["CWE-20","CWE-863"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/langchain-ai/langgraph/security/advisories/GHSA-6hmw-9432-67qq"},{"type":"WEB","url":"https://github.com/langchain-ai/langgraph/pull/9217"},{"type":"WEB","url":"https://github.com/langchain-ai/langgraph/commit/bfcfea554ed5c7f7be562cebf8825e911b493ab1"},{"type":"PACKAGE","url":"https://github.com/langchain-ai/langgraph"},{"type":"WEB","url":"https://github.com/langchain-ai/langgraph/releases/tag/checkpointpostgres%3D%3D3.1.3"},{"type":"WEB","url":"https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D3.1.2"}],"affected":[{"package":{"name":"langgraph-checkpoint-postgres","ecosystem":"PyPI","purl":"pkg:pypi/langgraph-checkpoint-postgres"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"versions":["1.0.0","1.0.1","1.0.10","1.0.11","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","2.0.0","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.22","2.0.23","2.0.24","2.0.25","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1.0","3.1.0a1","3.1.0a3","3.1.0a4","3.1.1","3.1.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6hmw-9432-67qq/GHSA-6hmw-9432-67qq.json"}},{"package":{"name":"langgraph-checkpoint-sqlite","ecosystem":"PyPI","purl":"pkg:pypi/langgraph-checkpoint-sqlite"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","2.0.0","2.0.1","2.0.10","2.0.11","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.0a1","3.1.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6hmw-9432-67qq/GHSA-6hmw-9432-67qq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"}]}