Stranger-test adds checks for cross-user leaks in AI agent memory
The maintainer reports cross-user access on a local LangGraph server with missing permission checks. The tool also reproduces a separate, already-patched storage flaw.
Loading page…
The maintainer reports cross-user access on a local LangGraph server with missing permission checks. The tool also reproduces a separate, already-patched storage flaw.
Listen to this story
Stranger-test maintainer Vedant-Agarwal added a two-user check for whether an authenticated user can read another user’s LangGraph threads, state, history, or Store records when application authorization handlers are missing. The test exercises six HTTP API routes and distinguishes confirmed leaks from routes it could not exercise; it does not cover semantic search. The maintainer also reproduced a separate, already-patched namespace-scoping flaw, underscoring that application-level access checks and storage-package fixes address different failure modes.
User A saves a unique marker; the tool tries to retrieve it as user B and labels each route LEAK, OK, or INCONCLUSIVE.
A route is never marked OK unless user A can first retrieve their own marker.
In the maintainer’s SQLite reproduction, langgraph-checkpoint-sqlite 3.1.0 leaked across namespaces, while 3.1.1 returned OK.
The maintainer of stranger-test has added a check for a basic privacy failure in AI agents: one signed-in user reading another user’s saved memory. In a November 24 LangChain Forum post, Vedant-Agarwal described the new test and reported cross-user access on a local LangGraph server that had authentication enabled but lacked authorization handlers.
The local setup used a LangGraph 1.2.23 development server and a sample application. According to the maintainer, user B could read user A’s conversation thread, saved state, history and Store items—the records held in LangGraph’s memory store.
The distinction is between signing someone in and deciding what they may read. The post explains that LangGraph leaves permissions for threads and Store items to application-defined @auth.on handlers. It says a missing handler does not raise an error. The author considers application-owned permissions reasonable because the application knows who owns each record.
The check acts as two users against a server operated by the tester. User A saves a unique marker in a thread and in the Store. The tool then tries to retrieve it as user B through six routes: fetching the thread, its state and its history; searching threads; fetching a Store item; and searching the Store.
Each route receives a LEAK, OK or INCONCLUSIVE result. A must first successfully read their own marker. If that fails, the route is marked as not exercised, never OK. Stranger-test is open source under the Apache-2.0 license and, according to its maintainer, uses only Python’s standard library.
The maintainer also reports reproducing CVE-2026-71433, previously reported by other researchers and already fixed. Unlike the missing-handler test, this reproduction used an application that correctly restricted users to their own namespaces, or named storage scopes.
The GitHub security advisory explains the problem: Postgres and SQLite stores joined namespace segments with dots, then used a prefix pattern for scoped searches and namespace listings. A search limited to foo could include foobar. The advisory lists versions before 3.1.1 as affected for both storage packages, with 3.1.1 patched. Direct get, put and delete operations were not affected.
The new stranger-test check covers only what it can exercise through the server’s HTTP API—the interface used to send requests. It does not yet test semantic search. The maintainer limits its intended use to servers testers run themselves or have permission to test.
Loading discussion...
Join the conversation
Explain who should bear responsibility for a missing access check.
Be the first to share a perspective or an experience.
Reader comments
Newest comments first. Replies stay oldest first.