# CVE-2026-27794: LangGraph: BaseCache Deserialization of Untrusted Data may lead to Remote Code Execution

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.6
- **CVSS:** 6.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.26% (percentile 70, 2026-11-26)
- **CWE:** CWE-502
- **Aliases:** GHSA-mhr3-j7m5-c7c9, PYSEC-2026-2574
- **Published:** 2026-02-25T16:53:47.176Z
- **Modified:** 2026-07-13T16:43:21.192Z

## Who should check

- Projects that depend on PyPI package langgraph-checkpoint (\< 4.0.0)
- Anyone running langchain-ai langgraph-checkpoint \< 4.0.0

## Description

LangGraph Checkpoint defines the base interface for LangGraph checkpointers. Prior to version 4.0.0, a Remote Code Execution vulnerability exists in LangGraph's caching layer when applications enable cache backends that inherit from \`BaseCache\` and opt nodes into caching via \`CachePolicy\`. Prior to \`langgraph-checkpoint\` 4.0.0, \`BaseCache\` defaults to \`JsonPlusSerializer(pickle\_fallback=True)\`. When msgpack serialization fails, cached values can be deserialized via \`pickle.loads(...)\`. Caching is not enabled by default. Applications are affected only when the application explicitly enables a cache backend (for example by passing \`cache=...\` to \`StateGraph.compile(...)\` or otherwise configuring a \`BaseCache\` implementation), one or more nodes opt into caching via \`CachePolicy\`, and the attacker can write to the cache backend (for example a network-accessible Redis instance with weak/no auth, shared cache infrastructure reachable by other tenants/services, or a writable SQLite cache file). An attacker must be able to write attacker-controlled bytes into the cache backend such that the LangGraph process later reads and deserializes them. This typically requires write access to a networked cache (for example a network-accessible Redis instance with weak/no auth or shared cache infrastructure reachable by other tenants/services) or write access to local cache storage (for example a writable SQLite cache file via permissive file permissions or a shared writable volume). Because exploitation requires write access to the cache storage layer, this is a post-compromise / post-access escalation vector. LangGraph Checkpoint 4.0.0 patches the issue.

## Affected and fixed versions

- PyPI `langgraph-checkpoint`: affected \< 4.0.0; fixed 4.0.0 (osv)
- langchain-ai langgraph-checkpoint: \< 4.0.0 (cvelist)

## Mitigation

- Upgrade langgraph-checkpoint to 4.0.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27794. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27794.md
Affected: langgraph-checkpoint < 4.0.0
Fixed in: 4.0.0

Steps:
1. Search this machine and project for langgraph-checkpoint (PyPI), langchain-ai langgraph-checkpoint: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27794 being exploited?

There is no confirmed exploitation: CVE-2026-27794 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27794?

Medium: CVSS 6.6 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-27794?

langgraph-checkpoint \< 4.0.0.

### Is there a fix for CVE-2026-27794?

Yes. Fixed in 4.0.0. Upgrade langgraph-checkpoint to 4.0.0 or later.

### How do I check if I'm affected by CVE-2026-27794?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/langchain-ai/langgraph/security/advisories/GHSA-mhr3-j7m5-c7c9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27794>
- vendor: <https://github.com/advisories/GHSA-mhr3-j7m5-c7c9>
- patch: <https://github.com/langchain-ai/langgraph/pull/6677>
- patch: <https://github.com/langchain-ai/langgraph/commit/f91d79d0c86932ded6e3b9f195d5a0bbd5aef99c>
- other: <https://github.com/langchain-ai/langgraph/releases/tag/checkpoint%3D%3D4.0.0>
- other: <https://github.com/langchain-ai/langgraph>
- other: <https://pypi.org/project/langgraph-checkpoint>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27794>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mhr3-j7m5-c7c9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2574> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27794> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27794>
