Security

'Each vulnerability exposes a different class of enterprise data': LangChain framework hit by several worrying security issues — here's what we know

techexpresshub Staff27 March 2026 at 17:10 UTC3 min read
'Each vulnerability exposes a different class of enterprise data': LangChain framework hit by several worrying security issues — here's what we know

LangChain and LangGraph patch three high-severity flaws exposing files, secrets, and conversation historiesVulnerabilities included path traversal, deserialization leaks, and SQL injection in SQLite checkpointsResearchers warn risks ripple through downstream libraries; developers urged to audit configs and treat LLM outputs as untrusted input

LangChain and LangGraph, two popular open source frameworks for building AI apps, contained high-severity and critical vulnerabilities which allowed threat actors to exfiltrate sensitive data from compromised systems.

LangChain helps developers build apps using large language models (LLM), by connecting AI models to various data sources and tools. It is a popular tool among developers looking to build chatbots and assistants. LangGraph, on the other hand, is built on top of LangChain and is designed to help create AI agents that follow structured, step-by-step workflows. It uses graphs to control how tasks move between steps, and devs use it for complex, multi-step processes.

Citing stats on the Python Package Index (PyPI), The Hacker News says the projects have more than 60 million combined downloads a week, suggesting they are immensely popular in the software development community.

Article continues below

Vulnerabilities and patches

In total, the projects fixed three vulnerabilities:

CVE-2026-34070 (severity score 7.5/10 - high) - A path traversal bug in LangChain that enables arbitrary file access without validation

CVE-2025-68664 (severity score 9.3/10 - critical ) - A deserialization of untrusted data flaw in LangChain that leaks API keys and environment secrets

CVE-2025-67644 (severity score 7.3/10 - high ) - An SQL injection vulnerability in LangGraph SQLite checkpoint implementation that enables SQL query manipulation

"Each vulnerability exposes a different class of enterprise data: filesystem files, environment secrets, and conversation history," security researcher Vladimir Tokarev of Cyera said in a report detailing the flaws.

The Hacker News notes exploiting any of the three flaws allows threat actors to read sensitive files like Docker configurations, exfiltrate secrets through prompt injection, and even access conversation histories associated with sensitive workflows.

All bugs have since been fixed so if you’re using any of these tools, make sure to upgrade to the latest version to safeguard your projects.

CVE-2026-34070 can be fixed by bringing langchain-core at least to version 1.2.22

CVE-2025-68664 can be fixed by bringing langchain-core to versions n0.3.81 and 1.2.5

CVE-2025-67644 can be fixed by bringing langgraph-checkpoint-sqlite to version 3.0.1

Foundational plumbing

For Cyera, the findings show that the biggest threat to enterprise AI data might not be as complex as people think.

“In fact, it hides in the invisible, foundational plumbing that connects your AI to your business. This layer is vulnerable to some of the oldest tricks in the hacker playbook,” they said.

They also warned that LangChain “does not exist in isolation” but rather sits “at the center of a massive dependency web that stretches across the AI stack.” WIth hundreds of libraries wrapping LangChain, extending it, or depending on it, it means that any vulnerability in the project also means vulnerabilities down the stream.

The bugs “ripple outward through every downstream library, every wrapper, every integration that inherits the vulnerable code path.”

In order to truly secure your environment, patching the tools will not suffice, they said. Any code that passes external or user-controlled configurations to load_prompt_from_config() or load_prompt() need to be audited, and developers should not enable secrets_from_env=True when deserializing untrusted data. “The new default is False. Keep it that way,” they warned.

They also urged the community to treat LLM outputs as “untrusted input”, since different fields can be influenced by prompt injection. Finally, metadata filter keeys must be validated before they can be passed onto checkpoint queries.

“Never allow user-controlled strings to become dictionary keys in filter operations.”

More Stories

Security

Hackers hit AI coding tool OpenCode, running up charges on users’ AI accounts

OpenCode is an open-source AI coding agent that's become a popular alternative to Claude Code and Cursor. But hackers got into part of its online…

Read More ▸
Security

Fake VPN download site steals administrator credentials to give attackers direct access to corporate networks — but delivers official signed software so victims never suspect a thing

A fake WatchGuard VPN download website stole administrator credentials before delivering the genuine signed installer, potentially exposing corporate…

Read More ▸
Security

Massive data leak from AI development company exposes almost 14 million records — Vibetech collected data from different breaches and accidentally made them accessible online

The company has been harvesting data from different leaks, likely for research purposes.

Read More ▸
Security

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly using AI to scam the scammers by tricking them into talking to lifelike bots that they think are real…

Read More ▸
Security

Anthropic now offers a free vulnerability-finding service for open-source software

Anthropic is offering open-source projects a new way to check for vulnerabilities with its OSS Scanner.

Read More ▸
Security

Asos hit by extortion hack that may have compromised some customer data

The attackers sent a push notification to Asos shoppers announcing their activity.

Read More ▸