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.
Langflow connects language models, vector stores, databases, APIs and tools through a visual editor. A simple flow looks like this:
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 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.
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:
auditd and tried to pivot to other hosts.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.
Two default settings turn an application bug into an unauthenticated one:
/api/v1/auto_login issues a superuser bearer token to any caller who can reach the port. Set LANGFLOW_AUTO_LOGIN=false and define explicit superuser credentials. This removes the precondition for CVE-2026-9198's chain but is not a fix for it.WEBHOOK_AUTH_ENABLE defaults to False, which is the condition behind CVE-2026-8505. Enable it, and still upgrade.Confirm both settings in the running service, not just in a config file.
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.
The impact scales with the authority you gave the workflow. That is the lever you control.
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.
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.
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.
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.
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.
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.
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.
| 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.
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.
Run the free playground scanner against your AI application, or read the related guides.