CVE-2026-81941 Command injection in Langflow OSS

High 8.8 Published Updated

Authenticated users can execute arbitrary OS commands via MCP Tools, bypassing security controls to achieve code execution and privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-81941?

CVE-2026-81941 is a high-severity command injection vulnerability in Langflow Langflow, published on 10 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

IBM Langflow OSS 1.0.0 through 1.11.5 allows an authenticated non-administrative user could execute arbitrary operating system commands on the server at the privilege level of the application process by constructing a flow with an MCP Tools component configured to use a local stdio subprocess transport. This bypasses both the LANGFLOW_CUSTOM_COMPONENT_ADMIN_ONLY and LANGFLOW_BLOCK_CODE_INTERPRETER_COMPONENTS server-side controls intended to prevent exactly this class of access. Successful exploitation could lead to arbitrary command execution, sensitive data exposure (including credentials from the process environment), file system modification, and lateral movement to services reachable from the server.

Weakness: CWE-284

Which versions are affected by CVE-2026-81941?

It affects 1 product.

Products include Langflow Langflow.

How do I fix CVE-2026-81941?

No fix has been published for CVE-2026-81941 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-81941 being exploited?

There is no known exploitation of CVE-2026-81941 in the wild and no public exploit code.

All Langflow Langflow vulnerabilities

Sources

Also known as GHSA-m5q4-pf3r-r78g.

Is CVE-2026-81941 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free