{"id":"CVE-2026-115883","kind":"vulnerability","aliases":["CVE-2026-115883","GHSA-6hmw-9432-67qq"],"related":[],"title":"LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite stores","description":"### 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.","summary":"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.","severity":"medium","cvss":6.0,"epss":0.00414,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Run `pip show langgraph-checkpoint-postgres langgraph-checkpoint-sqlite` and compare the versions with the fixed ones\n- 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\n- Upgrade `langgraph-checkpoint-sqlite` to `3.1.2` or later\n- Both fixed releases require `langgraph-checkpoint` `4.3.0`\n- 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)","status":"open","published_at":"2026-10-23T22:06:44+00:00","first_seen_at":"2026-10-23T22:15:56+00:00","triaged_at":"2026-10-25T04:04:24+00:00","updated_at":"2026-10-25T06:54:11+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-10-25T04:04:24Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade `langgraph-checkpoint-postgres` to `3.1.3` or later\n- Upgrade `langgraph-checkpoint-sqlite` to `3.1.2` or later\n- Both fixed releases require `langgraph-checkpoint` `4.3.0`\n- 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)","reach":"network","title":"LangGraph: dotted namespace labels reach other tenants' data in Postgres and SQLite stores","impact":"medium","summary":"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.","category":"package","nicknames":[],"who_cares":["langgraph","python","postgres","sqlite","multi-tenant","ai-agents"],"confidence":0.85,"needs_auth":"yes","worst_case":"Attacker reads, overwrites or deletes another tenant's stored items","analyst_note":"","how_to_check":"- Run `pip show langgraph-checkpoint-postgres langgraph-checkpoint-sqlite` and compare the versions with the fixed ones\n- Search your code for `PostgresStore`, `AsyncPostgresStore`, `SqliteStore` or `AsyncSqliteStore` and check whether user input can become a namespace label","needs_analyst":false,"not_affected_if":["in-memory-store","static-namespaces","no-untrusted-namespace-input"],"who_is_affected":"Applications that use the LangGraph Postgres or SQLite store and build namespaces from untrusted input, such as tenant or user identifiers, are exposed. Systems that use InMemoryStore, or that only use fixed namespaces never derived from user input, are not affected in practice. Stores that do not use these two packages are not covered by the advisory.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000806,"input_tokens":4380,"output_tokens":735,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-115883':15A,24A '-20':37B '-2026':14A,23A '-67':20A '-863':39B '0.15.5':362C '0.16.2':364C '3.1.2':258C,404C '3.1.3':251C,398C '4.3.0':410C '6hmw':18A '9432':19A 'abatch':131C,170C,446C 'address':66B 'affect':260C,269C,274C 'agent':35B,355C 'ai':34B 'ai-ag':33B 'alic':230C 'alreadi':339C,372C 'anoth':67B,85B,149C,314C 'apart':290C 'api':338C 'appli':436C 'aput':159C 'async':123C 'asyncpostgresstor':180C 'asyncsqlitestor':183C 'basestor':152C 'batch':130C,169C,231C,305C,445C 'becom':329C 'belong':83B 'bob':103C,220C,242C 'call':306C,345C,458C 'caller':70B,135C 'check':153C,171C,439C 'checkpoint':27A,31A,52B,248C,255C,396C,402C,409C 'choos':295C 'cloud':367C 'code':349C 'compar':262C 'contain':4A,62B,115C,195C,324C,427C 'could':137C,142C,309C,322C 'cve':13A,22A 'cwe':36B,38B 'data':216C,328C 'delet':81B,119C,146C,221C,224C,303C,313C,414C 'delimit':455C 'deploy':334C,369C,378C,388C 'detail':151C 'direct':128C 'dot':58B,64B 'empti':422C 'everi':441C 'exist':377C 'fix':375C 'flaw':353C 'get':117C,205C,379C,412C 'ghsa':17A 'ghsa-6hmw':16A 'graph':348C 'host':387C 'http':336C 'impact':270C 'includ':173C,373C 'inmemorystor':261C 'input':294C,308C 'insid':177C 'invalidnamespaceerror':429C 'item':82B,147C,176C,226C,238C,317C 'join':54B,99C,190C 'keep':286C 'key':207C,223C,234C 'label':3A,56B,61B,76B,98C,114C,141C,155C,194C,201C,298C,318C,342C,359C,419C 'langgraph':1A,26A,30A,40B,51B,247C,254C,395C,401C,408C 'langgraph-checkpoint':407C 'langgraph-checkpoint-postgr':246C,394C 'langgraph-checkpoint-postgres':25A 'langgraph-checkpoint-sqlit':253C,400C 'langgraph-checkpoint-sqlite':29A 'langgraph.store.base.validate':459C 'langsmith':333C,366C 'let':292C 'list':120C,211C,416C 'made':346C 'map':106C 'may':272C 'method':162C 'multi':42B 'multi-ten':41B 'namespac':2A,7A,55B,68B,86B,95C,111C,121C,150C,154C,165C,186C,191C,199C,212C,263C,284C,297C,417C,453C,461C 'never':323C 'new':368C 'next':383C 'noth':172C 'one':278C 'op':126C,442C,460C,464C 'outsid':448C 'overwrit':79B,144C,311C 'overwrot':236C 'packag':44B 'pass':73B,127C,138C,163C,443C 'postgr':9A,45B,48B,89C,249C,397C,432C 'postgres':28A 'postgresstor':179C 'prefix':213C 'put':112C,158C,321C 'putop':175C,232C 'python':46B 'qq':21A 'reach':5A,300C,350C 'read':78B,143C,302C,310C 'reject':113C,340C,357C,418C 'releas':244C 'reli':282C 'remedi':391C 'repositori':450C 'requir':406C 'resolv':196C 'return':215C 'revis':371C,384C 'run':466C 'save':93C 'search':118C,208C,413C 'self':386C 'self-host':385C 'server':356C 'spell':203C 'sqlite':11A,32A,47B,50B,91C,256C,403C,434C 'sqlitestor':181C 'store':12A,53B,92C,110C,217C,227C,239C,281C,327C,337C,344C,435C,447C 'string':425C 'summari':87C 'tenant':43B,102C,219C,229C,241C,289C,315C 'tenant.alice':222C 'tenant.bob':105C,206C,209C,214C,233C 'text':188C,456C 'tupl':265C 'turn':184C,452C 'uncheck':167C 'unreach':330C 'untrust':293C 'upgrad':332C,390C,392C 'use':277C 'user':287C 'valu':235C 'version':124C,361C 'whose':200C 'written':319C","nicknames":[],"mitigations":[],"who_affected":"Applications that use the LangGraph Postgres or SQLite store and build namespaces from untrusted input, such as tenant or user identifiers, are exposed. Systems that use InMemoryStore, or that only use fixed namespaces never derived from user input, are not affected in practice. Stores that do not use these two packages are not covered by the advisory.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-23T22:06:44+00:00","kev":null,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-6hmw-9432-67qq","url":"https://github.com/advisories/GHSA-6hmw-9432-67qq","severity":"medium","published_at":"2026-10-23T22:06:44+00:00","modified_at":"2026-10-25T06:53:31+00:00","first_seen_at":"2026-10-23T22:15:56+00:00","fetched_at":"2026-10-25T12:17:45+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-115883","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115883","severity":null,"published_at":"2026-10-23T22:16:57+00:00","modified_at":"2026-10-23T22:16:57+00:00","first_seen_at":"2026-10-23T22:29:04+00:00","fetched_at":"2026-10-23T23:44:51+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}