LOW 3.1

CVE-2026-14742: Weak Hash in LangGraph Task Result Cache (CVSS 3.1)

LangGraph, a component of LangChain AI, contains a weakness in how it hashes cache keys within its Task Result Cache feature. Versions up to 1.2.4 use a weak hashing algorithm when processing cached task results, potentially allowing an authenticated attacker with network access to infer or predict cache contents. The vulnerability has low severity and requires significant technical effort to exploit, but the risk exists in environments where cache confidentiality is important and attackers have valid credentials.

Source data · NVD / CISA · public domain

CVSS
3.1 · 3.1 LOW · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Weaknesses (CWE)
CWE-327, CWE-328
Affected products
0 configuration(s)
Published / Modified
2026-07-05 / 2026-07-06

NVD description (verbatim)

A vulnerability was determined in langchain-ai langgraph up to 1.2.4. The affected element is the function _freeze of the file libs/langgraph/langgraph/_internal/_cache.py of the component Task Result Cache. This manipulation of the argument default_cache_key causes use of weak hash. The attack is possible to be carried out remotely. The complexity of an attack is rather high. The exploitability is described as difficult. The exploit has been publicly disclosed and may be utilized. The pull request to fix this issue awaits acceptance.

7 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability resides in the _freeze function within libs/langgraph/langgraph/_internal/_cache.py. The function's handling of the default_cache_key parameter employs weak cryptographic hashing (CWE-327, CWE-328), which fails to provide adequate collision resistance or preimage protection. An authenticated, network-positioned attacker can manipulate inputs to the cache key derivation process, potentially recovering or predicting cached task results that should remain confidential. The attack vector is network-based but requires valid credentials (PR:L) and high attack complexity (AC:H), limiting real-world exploitability.

Business impact

Organizations using LangGraph for AI orchestration with sensitive task results cached in production environments face a confidentiality risk. If an attacker gains valid user credentials and network access, they could potentially view cached data they should not have access to—including intermediate results from language model chains, embeddings, or other sensitive processing steps. This is most concerning in multi-tenant or shared infrastructure scenarios where cache isolation is a security boundary. The low CVSS score reflects that this is a confidentiality-only impact with high attack friction, not a complete system compromise.

Affected systems

LangGraph versions up to and including 1.2.4 are affected. The vulnerability is in the core Task Result Cache module used by any LangGraph deployment. Impact depends on whether the cache stores sensitive data and whether the deployment grants multiple users or external parties credentials to access the same LangGraph instance. Open-source users running LangGraph directly, as well as applications embedding LangGraph, should assess their usage.

Exploitability

Public disclosure has occurred, and a proof-of-concept is available, raising awareness among both defenders and potential adversaries. However, practical exploitation remains difficult because the attacker must: (1) obtain valid authentication credentials, (2) understand the cache key structure and inputs, (3) perform hash collision or preimage analysis, and (4) gain network access to the LangGraph service. These cumulative requirements make opportunistic attacks unlikely, though determined adversaries with insider access or compromised credentials pose a real threat.

Remediation

Upgrade LangGraph to a version newer than 1.2.4 once a patched release is available. A pull request addressing the weak hash issue has been submitted and is awaiting acceptance, so users should monitor LangChain AI's repository and release notes for the fix. In the interim, restrict network and credential access to LangGraph instances, ensure cache storage is encrypted at rest, and consider disabling the Task Result Cache if it contains highly sensitive data.

Patch guidance

Watch the LangChain AI GitHub repository for the next stable release after 1.2.4 that includes the accepted pull request. When available, prioritize updating LangGraph in all environments, starting with production systems that cache sensitive task outputs. Verify the patch by reviewing the merged PR to confirm the _freeze function now uses a cryptographically strong hashing mechanism (e.g., SHA-256 or HMAC-based key derivation). Test thoroughly in a staging environment before production rollout.

Detection guidance

Monitor LangGraph logs for unusual cache key generation patterns or repeated failed cache lookups, which may indicate an attacker probing the cache. Implement network segmentation to limit access to LangGraph services to trusted users and systems. Review credential usage and audit logs for any suspicious authentications or cache accesses from unexpected locations. Use a software composition analysis (SCA) tool to identify LangGraph 1.2.4 or earlier in your codebase and track instances over time.

Why prioritize this

Although the CVSS score is low and exploitation is difficult, this vulnerability should not be ignored in organizations handling sensitive AI workloads. Prioritize patching if your LangGraph deployment caches confidential data, serves multiple users, or operates in a zero-trust security model where credential compromise is a realistic threat. For development-only or low-sensitivity deployments, patching can be scheduled normally.

Risk score, explained

The CVSS 3.1 score of 3.1 (LOW) reflects a confidentiality-only impact (C:L) with no integrity or availability risk, combined with high attack complexity (AC:H) and a requirement for prior authentication (PR:L). The network attack vector (AV:N) prevents the score from being even lower, but the multiple limiting factors—credentials, complexity, and lack of system-wide compromise—result in a low overall rating. This is an appropriate calibration for an insider threat or privilege-escalation scenario rather than a critical remote exploit.

Frequently asked questions

Do we need to patch immediately?

Not necessarily. If your LangGraph instance does not cache sensitive data, or if access is restricted to fully trusted internal users, the risk is minimal. However, if you operate a multi-user system, handle sensitive AI outputs, or have any possibility of credential compromise, plan to patch within your normal update cycle (e.g., next quarterly release).

Will updating LangGraph break our code?

The fix is expected to be a patch-level release (e.g., 1.2.5 or 1.3.0), which should be backward-compatible. Always test in a staging environment first, but the change to the hashing mechanism is internal to the cache layer and should not require application-level code changes.

Can this vulnerability expose our model data or API keys?

Only if your LangGraph Task Result Cache stores those items. If you cache only intermediate results or embeddings and keep sensitive credentials and API keys in a separate secrets management system, the risk is reduced. Review your cache configuration and data retention policies.

What should we do while waiting for a patch?

Restrict network and user access to LangGraph to a minimal trusted set, consider disabling the Task Result Cache if feasible, encrypt cache storage at rest, and rotate credentials for any user or service accounts that access the system. Monitor the LangChain AI repository for the patched version.

This analysis is provided for informational purposes and represents SEC.co's interpretation of publicly available vulnerability data as of the publication date. Vendor and product information, CVSS scores, and CWE classifications come from official sources (NVD, vendor advisories, or the CVE record). No exploit code or step-by-step attack instructions are provided. Organizations should verify patch availability and compatibility with their specific environment before deployment. SEC.co makes no warranty regarding the completeness or timeliness of this information and recommends consulting official vendor advisories and your internal security team for final remediation decisions. Source: NVD (public-domain), retrieved 2026-08-14. Analysis generated by SEC.co (claude-haiku-4-5).