TL;DR: Cyera reports three LangChain and LangGraph vulnerabilities, including one critical flaw, that can expose filesystem files, environment secrets, and conversation history across widely deployed AI infrastructure with roughly 847 million combined PyPI downloads. The real governance issue is that AI frameworks behave like data pipelines, so existing IAM and data security controls must extend into the agent runtime, not stop at the app boundary.
NHIMG editorial — based on content published by Cyera: LangDrained, three paths to your data through LangChain, the world's most popular AI framework
By the numbers:
- The LangChain family has reached roughly 847 million total downloads across langchain, langchain-core, and langchain-community.
- The Trivy supply chain compromise spread across 5 ecosystems in March 2026.
Questions worth separating out
Q: How should security teams handle hidden AI framework dependencies in enterprise environments?
A: Treat AI frameworks as governed infrastructure, not incidental libraries.
Q: Why do AI frameworks create new NHI governance risks?
A: AI frameworks often sit between identities, tools, secrets, and persistent memory, so they can amplify a small coding flaw into broad data exposure.
Q: What breaks when prompt loading or deserialisation is not constrained?
A: Unconstrained prompt loading can turn a harmless configuration reference into local file disclosure, while permissive deserialisation can reinterpret attacker-controlled data as trusted framework objects.
Practitioner guidance
- Inventory AI framework dependencies Identify every service, pipeline, and internal tool that imports LangChain or LangGraph directly or transitively.
- Restrict prompt loading to trusted paths Block user-controlled file paths and enforce base-directory checks for any prompt or template loader.
- Harden secret handling in deserialisation flows Disable secret resolution for untrusted objects and audit every code path that serialises model output, tool responses, or metadata.
With 98% of companies planning to deploy even more AI agents within the next 12 months, per AI Agents: The New Attack Surface report, the governance gap will widen unless teams can map AI middleware to data classes and responsible owners?
👉 Read Cyera's analysis of LangChain vulnerabilities and AI data exposure →
Explore further
AI frameworks are now data infrastructure, not just developer libraries. When a framework routes prompts, memory, files, and tools, it sits inside the enterprise trust boundary whether teams document it or not. That means NHI governance has to extend to framework runtime paths, not stop at account provisioning. Practitioners should treat framework code as an access path with its own controls.
A few things that frame the scale:
- 96% of technology professionals identify AI agents as a growing security threat, and 66% believe this risk is immediate, according to AI Agents: The New Attack Surface report.
- Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
A question worth separating out:
Q: How do teams reduce the blast radius of vulnerable AI middleware?
A: Patch affected packages, but do not stop there. Restrict where framework components can read files, disable secret resolution for untrusted inputs, validate checkpoint metadata, and review every downstream wrapper that may inherit the same flaw. The goal is to make one vulnerable dependency less able to expose the rest of the stack.
👉 Read our full editorial: LangChain vulnerabilities expose how AI frameworks can drain enterprise data