Vulnerability Analysis

Langflow Security: Verified RCE Flaws, Active Exploitation and a Hardening Checklist

Which Langflow flaws are documented, which defaults make them worse, and the controls that reduce exposure.

Langflow is a visual builder for AI agents and workflows, and it has become a frequent exploitation target. VulnCheck tracks 12 Langflow vulnerabilities as exploited in the wild, 11 of them added in 2026. This guide covers the vulnerabilities that are documented, the defaults that make them worse, and the controls that reduce exposure. Facts are current as of 16 October 2026; check the advisories before you act, because the version numbers keep moving.

Basis and disclosure. This article draws on public advisories, NVD records and published threat research, not on HexTyx testing of Langflow. HexTyx is an AI security vendor and sells related products, which are described in the last section.

The short version

What Langflow is and why the orchestrator is a high-value target

Langflow connects language models, vector stores, databases, APIs and tools through a visual editor. A simple flow looks like this:

User question→Retrieval→Language model→Business API→Response

The platform therefore holds, in one place, the things an attacker wants: model-provider API keys, database and cloud credentials, retrieved documents, and the ability to execute code and call tools. Langflow is not insecure merely because it executes code. The risk comes from vulnerabilities, risky defaults and exposed interfaces combining with that capability, and from how much authority the process holds.

The documented vulnerabilities

The table lists five of the flaws that matter most. VulnCheck's list of exploited Langflow CVEs is longer, so do not treat this as complete.

CVE What it is Login needed Affected versions Fixed in
CVE-2025-3248 Code injection via the /api/v1/validate/code endpoint No Before 1.3.0 1.3.0
CVE-2026-33017 RCE via the public-flow build endpoint: a caller can supply their own flow definition and its node code reaches exec() No (needs the ID of one public flow) 1.8.2 and earlier 1.9.0
CVE-2026-8505 Webhook authentication bypass: with WEBHOOK_AUTH_ENABLE left at its default of False, anyone who knows a flow's ID can run it as the owner, which can lead to RCE No 1.0.0 through 1.10.0 See IBM's advisory; NVD does not state it
CVE-2026-9198 Chain of auto-login (issues a superuser token) and /api/v1/validate/code code evaluation No 1.0.0 through 1.10.0 1.10.1
CVE-2026-12940 Command injection in the MCP stdio launcher: the environment-variable blocklist omits SHELLOPTS, BASHOPTS and PS4 No 1.0.0 through 1.10.1 NVD's range excludes 1.10.2; fix not stated on the record

Severity: all five are rated critical. CVE-2026-33017 is CVSS 9.3 in its advisory; CVE-2026-8505, CVE-2026-9198 and CVE-2026-12940 are 9.8 in NVD; CVE-2025-3248 is 9.8. CVE-2026-33017 was published on 16 March 2026, and VulnCheck lists it in its own and in CISA's catalog by 25 March. CVE-2025-3248 reached CISA's catalog on 5 May 2025, and VulnCheck's table puts CVE-2026-9198 in the catalog on 4 August 2026.

Why MCP matters here: CVE-2026-12940 shows a tool-integration launcher becoming the attack surface. MCP itself is a protocol, not a flaw. The problem is a launcher that passes attacker-influenced environment variables to a shell.

What exploitation looks like

VulnCheck deployed deliberately vulnerable Langflow instances as canaries. They recorded more than 15,000 successful exploitation attempts against CVE-2026-0769, CVE-2025-3248 and CVE-2026-5027, and observed two separate attackers:

Read these numbers carefully. They count attempts against honeypots, not compromised customers. They show that attackers scan for Langflow and use it for both credential theft and resource theft.

A figure to avoid. A claim that "more than 1,400 attacks" target Langflow circulates in some write-ups. We could not trace it to a measurement source, a time window or a method, so this article does not use it. Quote the VulnCheck figures above, with attribution, if you need a number.

Risky defaults to check first

Two default settings turn an application bug into an unauthenticated one:

Confirm both settings in the running service, not just in a config file.

How an attack chain unfolds

Find exposed instance→Reach an unauthenticated endpoint→Run code as the Langflow process→Read environment secrets→Abuse keys or pivot

Each stage is a separate condition. A private instance behind a VPN breaks the first stage. A patched instance breaks the second and third. Secrets kept out of the process break the fourth. Treat the chain as a map of where to put controls, not as one inevitable sequence.

What an attacker can gain

The impact scales with the authority you gave the workflow. That is the lever you control.

Seven defenses

1. Upgrade, then verify

Use the official advisories, not a generic "we are on a recent version." Identify your installed version, compare it with each affected range above, and upgrade. At the time of writing, the newest CVE in this article has an NVD range that excludes 1.10.2, so treat 1.10.2 as the minimum and check for newer releases. Confirm the running service reports the version you intended, and retest after upgrading.

2. Remove public exposure

Bind Langflow to a private interface, put it behind a VPN or identity-aware proxy, and restrict inbound traffic to approved sources. Keep development, staging and production separate, and do not publish test flows that can reach production data.

3. Fix authentication settings

Disable auto-login, enable webhook authentication, create named accounts with least-privilege roles, and remove inactive users. Test the boundaries: a user who can open the app should not be able to edit every flow, read every secret or create arbitrary MCP server definitions.

4. Keep secrets out of the process

Do not hardcode keys in flows or repositories. Use a secrets manager, scope each credential to one purpose, and rotate if exposure is suspected. A process that is allowed to fetch a secret can still be made to leak it, so least privilege matters more than the vault.

5. Isolate execution and limit egress

Run Langflow as a dedicated unprivileged user. In containers, review mounts, capabilities, network access and any access to the container runtime, and avoid privileged containers. Apply default-deny outbound rules so that code running in the process cannot freely send data or contact command-and-control servers. A container reduces impact but does not guarantee against host escape.

6. Treat each MCP server as a trust boundary

Restrict who can add or edit MCP server definitions, control the command and environment fields, scope each integration's credentials, limit outbound destinations, and require independent authorization for sensitive actions. An agent's decision is not authorization for a high-impact action.

7. Monitor, hunt and prepare to respond

Log authentication events, flow changes, tool execution and unusual API spend. Search ingress logs for requests to /api/v1/auto_login and POSTs to /api/v1/validate/code from unexpected sources. Check hosts for unexpected cron entries, unfamiliar SSH keys, miners, disabled auditd and unknown outbound connections, and check model-provider billing for anomalies. If you suspect compromise, isolate the service, preserve evidence, rotate every credential the process could read, assess connected systems, and rebuild from a trusted configuration. A restart or a password change does not remove an attacker who already has a foothold.

Production checklist

Check Why
Running version matches a fixed release for every CVE above Known unauthenticated RCE paths
LANGFLOW_AUTO_LOGIN=false with explicit superuser credentials Removes the default superuser token
WEBHOOK_AUTH_ENABLE enabled Closes the unauthenticated flow-execution path
Not reachable from the public internet Breaks the first stage of the chain
Runs unprivileged, with default-deny egress Limits what code execution can do
Secrets scoped and rotatable, none embedded in flows Limits what a compromise can read
MCP definitions restricted and reviewed Closes the launcher attack surface
Logs and alerts on auth, flow changes and tool calls Detection and evidence
Incident runbook includes credential rotation Containment

A checklist is a starting point. Test the controls that matter instead of only documenting them.

Where scanning and runtime controls help, and where they do not

Patching is the only fix for a server-side RCE in the orchestrator, and no scanner or runtime gateway replaces it. AI-focused testing and runtime controls address the layer above it: what the agents and tools inside the workflow can be made to do.

The security lesson is the same one this series makes elsewhere: a model can be manipulated, so the boundary around its access and actions has to hold anyway.

Frequently Asked Questions

Is Langflow safe to use in production?
It can be, if you run a fixed version, keep it off the public internet, change risky defaults and give it least privilege. Several critical flaws were exploited in the wild in 2025 and 2026, so an unpatched or exposed instance is a real risk.
What is the most serious Langflow vulnerability?
Several are critical. CVE-2025-3248 and CVE-2026-33017 are unauthenticated remote code execution flaws that were added to CISA's Known Exploited Vulnerabilities catalog, and CVE-2026-9198 chains auto-login with code evaluation. Check your version against each range in the table.
Can a compromised Langflow instance expose API keys?
Yes, if the compromised process can read them from environment variables, configuration files, the database or a connected secret store. VulnCheck observed an attacker running a credential harvester on a honeypot. The exact impact depends on the process's privileges and isolation.
Does MCP make Langflow insecure?
No. MCP is a protocol. CVE-2026-12940 is a flaw in how Langflow's stdio launcher handles environment variables. Treat each MCP server as a separate trust boundary and control who can define it.
What settings should I change first?
Set LANGFLOW_AUTO_LOGIN=false with explicit superuser credentials, enable webhook authentication, and take the instance off the public internet. Then upgrade to a fixed release.
Is a Docker container enough to protect Langflow?
No. Containers reduce impact, but broad mounts, excess privileges, open egress or access to the container runtime undermine isolation. Combine container hardening with least privilege and network controls.
What should I do if I suspect a Langflow compromise?
Isolate the service, preserve logs, rotate every credential the process could read, review billing and connected systems, search for persistence such as cron entries and SSH keys, and rebuild from a trusted state.

Sources

Test your own agent before an attacker does

Run the free playground scanner against your AI application, or read the related guides.

Related Guides

Tools
AI Agent Tool Security: MCP
CVE analysis
RAGFlow SSTI to RCE
CVE analysis
LangGraph RCE Patch
Credentials
AI Agent Credentials and API-Key Abuse
All Topics
AI Security Topic Hub →