Vulnerabilities in pkg:pypi/langgraph-checkpoint-postgres

PACKAGE
Advisory Identifier: GHSA-47pj-3jcm-6whg
Advisory Summary

CVE-2026-71433 is a MODERATE (CVSS 5.3) namespace prefix matching crosses segment vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting LangGraph libraries in the PyPI ecosystem. The issue involves namespace prefix matching crosses segment boundaries in postgres and sqlite stores. Remediation is available by upgrading affected packages to version 3.1.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/langgraph-checkpoint-postgres

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/langgraph-checkpoint-postgres. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-47pj-3jcm-6whg CVE-2026-71433 MODERATE LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores

CVE-2026-71433 at a Glance

CVE Identifier CVE-2026-71433
GHSA Identifier GHSA-47pj-3jcm-6whg
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product LangGraph
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-71433

To remediate this vulnerability, upgrade all affected LangGraph dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

langgraph-checkpoint-postgres fixed: 3.1.1
pip install langgraph-checkpoint-postgres>=3.1.1
langgraph-checkpoint-sqlite fixed: 3.1.1
pip install langgraph-checkpoint-sqlite>=3.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show langgraph-checkpoint-postgres

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-71433, inspect your installed packages using pip:

pip show langgraph-checkpoint-postgres

Analyze the terminal output to locate any version of LangGraph in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), your application is affected.

Note: The pip show langgraph-checkpoint-postgres command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In LangGraph, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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`/`AsyncPostgresStore` or `SqliteStore`/`AsyncSqliteStore`, and - rely on the namespace to separate data between users or tenants, and - have namespace labels where one is a prefix of another (`1` and `12`, `alice` and `alice2`), 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 leaf `users.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`, and `delete` compare 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: ```python 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`, which uses `AsyncPostgresStore` from `checkpoint-postgres`. Deployments configured with `LANGGRAPH_STORE_BACKEND=grpc` use a separate implementation that received an equivalent fix.

CVE-2026-71433 Affected LangGraph Versions

2 component(s)
Fixed Versions:
3.1.1
Product / Package Ecosystem Affected Versions Fixed Version
langgraph-checkpoint-postgres
PyPI
< 3.1.1
3.1.1
langgraph-checkpoint-sqlite
PyPI
< 3.1.1
3.1.1

References

Frequently Asked Questions

What is CVE-2026-71433?
CVE-2026-71433 is a security vulnerability in LangGraph involving Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which LangGraph versions are affected?
Affected versions include releases prior to 3.1.1 across affected packages: langgraph-checkpoint-postgres, langgraph-checkpoint-sqlite.
What version fixes CVE-2026-71433?
Upgrading to 3.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is langgraph-checkpoint-postgres affected?
Yes, langgraph-checkpoint-postgres is affected in releases prior to 3.1.1. Upgrade your dependency to 3.1.1 or later.
Is langgraph-checkpoint-sqlite affected?
Yes, langgraph-checkpoint-sqlite is affected in releases prior to 3.1.1. Upgrade your dependency to 3.1.1 or later.
What is the CVSS score of CVE-2026-71433?
CVE-2026-71433 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-71433?
CVE-2026-71433 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2026-71433?
Run the dependency tree command: 'pip show langgraph-checkpoint-postgres'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-47pj-3jcm-6whg",
  "modified" : "2026-08-06T19:03:12Z",
  "published" : "2026-08-06T19:03:12Z",
  "aliases" : [ "CVE-2026-71433" ],
  "summary" : "LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores",
  "details" : "## Summary\n\nThe 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.\n\nApplications 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.\n\nWe have no evidence of this behavior being exploited in the wild.\n\n## Affected users / systems\n\nYou may be affected if you:\n\n- use `PostgresStore`/`AsyncPostgresStore` or `SqliteStore`/`AsyncSqliteStore`, and\n- rely on the namespace to separate data between users or tenants, and\n- have namespace labels where one is a prefix of another (`1` and `12`, `alice` and `alice2`), or labels containing `_` or `%`\n\nApplications 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.\n\nThree distinct cases were possible:\n\n- **Sibling namespaces.** A read scoped to `(\"foo\",)` also returned items under `(\"foobar\",)` and `(\"foo2\",)`.\n- **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\",)`.\n- **Suffix conditions.** `list_namespaces(suffix=(\"alice\",))` also matched the sibling leaf `users.malice`.\n\nThis 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.\n\n## Impact\n\n- Confidentiality: disclosure of stored items belonging to namespaces outside the caller's intended scope, where namespaces are used as a tenant or user boundary.\n- No integrity or availability impact. `get`, `put`, and `delete` compare namespaces with `=` and were never affected; the issue is limited to read paths.\n\n## Patches / mitigation\n\nPrefix 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.\n\nOn 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.\n\nUpgrade to `langgraph-checkpoint-postgres` 3.1.1 or `langgraph-checkpoint-sqlite` 3.1.1.\n\n## Compatibility\n\n`*` 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.\n\nCallers relying on the previous behavior can express \"match at any depth\" by combining both match conditions, which are ANDed:\n\n```python\nlist_namespaces(prefix=[\"uid\"], suffix=[\"alice\"])\n```\n\nApplications whose namespace labels cannot be prefixes of one another see no behavioral change.\n\n## Operational guidance\n\n- Prefer fixed-length namespace labels such as UUIDs, so no label can be a prefix of another.\n- Where labels are user-supplied, validate them at the boundary rather than relying on scoping alone.\n\n## LangSmith / hosted deployments note\n\nUnlike previous store advisories, this issue does reach hosted deployments. LangSmith deployments default to `LANGGRAPH_STORE_BACKEND=python`, which uses `AsyncPostgresStore` from `checkpoint-postgres`. Deployments configured with `LANGGRAPH_STORE_BACKEND=grpc` use a separate implementation that received an equivalent fix.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "langgraph-checkpoint-postgres"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "langgraph-checkpoint-sqlite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-47pj-3jcm-6whg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/pull/8478"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/commit/66ebe1a0da921e73f0f9f879ba105d314c079f7c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/langchain-ai/langgraph"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/releases/tag/checkpointpostgres%3D%3D3.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite%3D%3D3.1.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-06T19:03:12Z",
    "nvd_published_at" : null
  }
}