CVE-2026-28277: LangGraph checkpoint loading has unsafe msgpack deserialization
LangGraph up to 1.0.9 rebuilds Python objects when it loads msgpack-encoded checkpoints. An attacker who can write to the checkpoint store can plant a payload that runs code in the application when a thread resumes. It is a post-compromise hardening issue, not a remote bug. Fixed in langgraph 1.0.10, with strict mode available via LANGGRAPH_STRICT_MSGPACK.
Published Mar 5, 2026 · Updated Jun 6, 2026 · Analysis Oct 31, 2026
What an attacker can do
LangGraph checkpointers save graph state as msgpack. The default serializer, JsonPlusSerializer, reconstructs msgpack ext types into Python objects when a checkpoint is loaded. With allowed_msgpack_modules at its default of True, every ext type is rebuilt and unregistered ones only log a warning. A crafted payload can therefore trigger unsafe object reconstruction on load (CWE-502).
The attacker must already be able to write checkpoint bytes at rest, for example through a database compromise, leaked credentials or an administrative data path. The maintainers call it post-exploitation and defense in depth. They know of no exploitation in the wild and no practical path in existing deployments, and an unauthenticated remote attacker normally cannot reach it. The CVSS vector reflects this with adjacent network and high privileges.
The risk is escalation. Write access to a checkpoint table becomes code execution in the app runtime, which can expose environment variables and cloud credentials. This matters for agents that use a persistent checkpointer such as a database, remote store or shared filesystem and resume from it. LangSmith-hosted deployments are not believed to be at risk.
Who is affected
The pip package langgraph, versions <= 1.0.9. You are exposed if you use a persistent checkpointer, resume from checkpoints, and an attacker could gain write access to that store. In-memory use with no shared store is much less exposed. Check the version:
pip show langgraphAlso check the checkpoint packages such as langgraph-checkpoint that you install alongside it.
langgraph
- Ecosystem
- PyPI
- Affected
- <= 1.0.9
- Fixed in
- 1.0.10
- Check
pip show langgraph
How to fix it
Upgrade to langgraph 1.0.10.
pip install --upgrade "langgraph>=1.0.10"The advisory describes an allowlist mode. Set LANGGRAPH_STRICT_MSGPACK=true (also 1 or yes) so JsonPlusSerializer defaults allowed_msgpack_modules to None, which rebuilds only a built-in safe set. You can pass an explicit list of (module, class_name) pairs instead. When you compile a StateGraph in strict mode, LangGraph derives an allowlist from your state schemas and applies it if the checkpointer supports with_allowlist. A custom ext_hook bypasses the allowlist. Restrict write access to the store.
How to tell if you were hit
Audit who and what can write to your checkpoint tables or files, and look for recent writes outside your application's own service account. Watch for warnings logged on checkpoint load about deserializing an unregistered msgpack type, since the default mode logs them. Compare checkpoint rows with known-good backups. Look for unexpected child processes, outbound connections or environment-variable access from the process that resumes graphs. Rotate credentials if the store may have been tampered with.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
LangGraph checkpointers can load msgpack-encoded checkpoints that reconstruct Python objects during deserialization. If an attacker can modify checkpoint data in the backing store (for example, after a database compromise or other privileged write access to the persistence layer), they can potentially supply a crafted payload that triggers unsafe object reconstruction when the checkpoint is loaded.
This is a post-exploitation / defense-in-depth issue. Exploitation requires the ability to write attacker-controlled checkpoint bytes at rest. In most deployments that prerequisite already implies a serious incident; the additional risk is turning “checkpoint-store write access” into code execution in the application runtime, which can expand blast radius (for example by exposing environment variables or cloud credentials available to the runtime).
There is no evidence of exploitation in the wild, and LangGraph is not aware of a practical exploitation path in existing deployments today. This change is intended to reduce the blast radius of a checkpoint-store compromise.
Affected users / systems
Users may be affected if they:
- use a persistent checkpointer (database, remote store, shared filesystem, etc.),
- load/resume from checkpoints, and
- operate in an environment where an attacker could gain privileged write access to checkpoint data in the backing store.
This issue requires the attacker to be able to modify persisted checkpoint bytes (or to compromise a trusted component that writes them). It is generally not reachable by an unauthenticated remote attacker in a correctly configured deployment.
Impact
- Potential arbitrary code execution or other unsafe side effects during checkpoint deserialization.
- Escalation from “write access to checkpoint store” to “code execution in the application runtime,” which may expose runtime secrets or provide access to other systems the runtime can reach.
Exploitation scenario (high level)
- Attacker gains privileged write access to the checkpoint store (for example, via database compromise, leaked credentials, or abuse of an administrative data path).
- Attacker writes a crafted checkpoint payload containing msgpack data intended to reconstruct dangerous objects.
- Application resumes and deserializes the checkpoint; unsafe reconstruction could execute attacker-controlled behavior.
Mitigation / remediation
LangGraph provides an allowlist-based hardening mechanism for msgpack checkpoint deserialization.
Strict mode (environment variable)
- `LANGGRAPH_STRICT_MSGPACK`
- When set truthy (
1,true,yes), the default msgpack deserialization policy becomes strict. - Concretely:
JsonPlusSerializer()will defaultallowed_msgpack_modulestoNone(strict) instead ofTrue(warn-and-allow), unlessallowed_msgpack_modules=...is explicitly passed.
allowed_msgpack_modules (serializer/checkpointer config)
This setting controls what msgpack “ext” types are allowed to be reconstructed.
True(default when strict mode is not enabled): allow all ext types, but log a warning when deserializing a type that is not explicitly registered.None(strict): only a built-in safe set is reconstructed; other ext types are blocked.[(module, class_name), ...](strict allowlist): the built-in safe set plus exactly the listed symbols are reconstructed (exact-match).
Built-in safe set
A small set of types is always treated as safe to reconstruct (for example datetime types, uuid.UUID, decimal.Decimal, set/frozenset/deque, ipaddress types, pathlib paths, zoneinfo.ZoneInfo, compiled regex patterns, and selected LangGraph internal types).
Automatically derived allowlist (only when compiling graphs)
When LANGGRAPH_STRICT_MSGPACK is enabled and StateGraph is compiled, LangGraph derives an allowlist from the graph’s schemas and channels and applies it to the checkpointer.
- The allowlist is built by walking the state/input/output/context schemas (plus node/branch input schemas) and channel value/update types. It includes Pydantic v1/v2 models, dataclasses, enums, TypedDict field types, and common typing constructs (containers, unions,
Annotated). - LangGraph also includes a curated set of common LangChain message classes.
This derived allowlist is only applied if the selected checkpointer supports with_allowlist(...). If a user is constructing serializers/checkpointers manually (or using a checkpointer that does not support allowlist propagation), they will need to configure allowed_msgpack_modules themselves.
Operational guidance
- Treat checkpoint stores as integrity-sensitive. Restrict write access and rotate credentials if compromise is suspected.
- Enable strict mode (
LANGGRAPH_STRICT_MSGPACK=true) in production if feasible, and rely on schema-driven allowlisting to reduce incompatibilities. - Avoid providing custom msgpack deserialization hooks that reconstruct arbitrary types unless checkpoint data is fully trusted.
Limitations / important notes
- If a checkpointer implementation does not support allowlist application (i.e., does not implement
with_allowlist), allowlist enforcement may be skipped (with a warning). In that situation, strict expectations may not hold. - If an application supplies a custom msgpack unpack hook (
ext_hook), the custom hook controls reconstruction and can bypass the default allowlist checks (intentional escape hatch, but it weakens the protection).
LangSmith / hosted deployments note
LangSmith is not aware of this issue presenting risk to existing LangSmith-hosted deployments. The described threat model requires an attacker to tamper with the checkpoint persistence layer used by the deployment; typical hosted configurations are designed to prevent such access.
First reported by: yardenporat353
Questions
- Is LangGraph 1.0.9 affected by CVE-2026-28277?
Yes. Versions up to and including 1.0.9 are affected. Upgrade to 1.0.10 and consider strict mode.
- Can an outsider exploit this over the internet?
Not directly. The attacker needs privileged write access to the checkpoint store. The maintainers say it is generally not reachable by an unauthenticated remote attacker in a correctly configured deployment.
- What does LANGGRAPH_STRICT_MSGPACK do?
When set truthy, JsonPlusSerializer defaults allowed_msgpack_modules to None, so only a built-in safe set of types is rebuilt. Other msgpack ext types are blocked, unless you pass your own allowlist.
- Is it exploited in the wild?
The maintainers say there is no evidence of exploitation in the wild, and it is not in CISA's KEV catalog.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More LangGraph vulnerabilities
All LangGraph entriesCVE-2026-118667
LangGraph: Unencoded identifiers in LangGraph SDK v3 streaming can redirect authenticated GET requests
medium4.3Oct 28, 2026CVE-2026-48775
LangGraph Checkpoint: Unsafe JSON deserialization in checkpoint loading
medium6.8Jun 25, 2026CVE-2026-27794
LangGraph: BaseCache Deserialization of Untrusted Data may lead to Remote Code Execution
medium6.6Feb 25, 2026CVE-2025-64439
LangGraph Checkpoint affected by RCE in "json" mode of JsonPlusSerializer
high7.4Nov 5, 2025
