Langflow allows authenticated users to run any operating system command

CriticalSE Fix-First Score 51/100CVE-2026-7873SE-AIV-01403Remote code executionAI apps and chat interfacesPublished 1 Jul 2026

Download as PDF

What this means

An attacker with login credentials to Langflow can run any command on the server, read files with secrets and passwords, and take over the entire system. They could then move to other systems on the network. This is a complete compromise of the server and anything it can reach.

SecurityElites Manager Brief: the decision in one minute

Langflow versions 1.0.0 to 1.10.0 let anyone who can log in run operating system commands as the server. An attacker with a user account can steal passwords, modify data, and attack other systems. You must upgrade immediately.

SecurityElites Fix-First Score51 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 7 days
Critical severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team (Python application owner).
Likely effortAbout 30 minutes per installation: check the version, upgrade the Python package, restart Langflow, and verify. It could take longer if you have many servers or if Langflow is part of a larger system that needs testing.

Questions to ask your team or supplier

  • Which Langflow user accounts exist, and do all of them still need access? Can we delete unused accounts and rotate passwords for the rest?
  • If Langflow connects to external AI services or databases, do we know whether an attacker accessed those services through Langflow between now and 90 days ago?
  • Is Langflow running in an isolated network or on a system where other sensitive applications run? If it was compromised, could an attacker reach those other systems?

Message you can forward to the owning team

Security notice: Langflow allows authenticated users to run any operating system command (CVE-2026-7873)

Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to langflow 1.10.1.rc0 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-7873-langflow-allows-authenticated-users-to-run-any-operating-system/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01403

What is at stake in your AI setup

  • API keys for external AI providers (OpenAI, Anthropic, etc.): an attacker can read them from environment files and use them to call the APIs, running up your bill and poisoning responses.
  • Prompts and flow definitions: an attacker can read and modify them to change how the AI agent behaves, potentially injecting malicious instructions into every request.
  • Chat history and user inputs: sensitive conversation data, training examples, or customer queries could be read and exported.
  • Database credentials and connection strings: an attacker can connect to your data warehouse or retrieval system and read or modify training or retrieval data.

Map where your company uses AI

Who is exposed

  • Teams running Langflow 1.0.0 through 1.10.0 with network access or user accounts.
  • AI teams using Langflow to build agents or chains that connect to other tools.
  • Any deployment where Langflow users have access to production data or systems.
  • Installations with shared user accounts or weak password practices.
  • Langflow versions 1.10.1.rc0 and later are not affected.

Upgrades you need

SoftwareAffected versionsMove to
langflow
PyPI
1.0.0 up to, but not including, 1.10.1.rc01.10.1.rc0 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Kind of coding mistake

  • CWE-94: code can be injected

What the vendor says

Fix: IBM strongly recommends addressing the vulnerability now by upgrading Langflow OSS to version 1.10.1 https://pypi.org/project/langflow/

If you cannot upgrade today

  • Restrict network access to Langflow to trusted IP ranges only; use a firewall or network policy to allow only internal access.
  • Disable or remove user accounts you do not actively use. Revoke API tokens and authentication keys for unused integrations.
  • Run Langflow in a container with minimal privileges and no access to sensitive files outside the application directory. Use read-only mounts for configuration.

Signs it may already have been used against you

  • Check Langflow login logs for user accounts you do not recognize or logins from unusual times or locations.
  • Look for shell command execution attempts in Langflow flow definitions or API calls; search for keywords like `exec`, `system`, `subprocess`, `os.popen`, or backticks in flow JSON or logs.
  • Review file access logs on the server for unexpected reads of files in `/root`, `/home`, `/etc`, or directories with secrets like `.ssh`, `.aws`, or `.env`.
  • Search server audit logs for unusual process spawning or child processes started by the Langflow Python process (PID or service name).

Log searches to start from

Langflow login events (adapt field names to your logs)Splunk

source=langflow* (login OR authenticate OR "user login") | stats count by user, src_ip, _time

Process execution by Langflow (adapt field names and process name to your environment)Elastic

process.parent.name:langflow* OR process.parent.name:python* AND process.command_line:(exec OR system OR subprocess) | fields host, process.name, process.command_line, @timestamp

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find where Langflow is installedCheck all servers and containers where your team runs Langflow. Look in pip list output, Docker images, and virtual environments. Note the version number for each one.
  2. Check the version numberRun `pip show langflow` or check the Langflow UI settings page. If the version is 1.0.0 through 1.10.0 (inclusive), it is vulnerable. If it shows 1.10.1.rc0 or later, it is fixed.
  3. Review access logs before the fixLook at Langflow login records and API access logs from the past 90 days. Note which user accounts logged in, from which IP addresses, and when. Save this for later investigation if needed.
  4. Back up Langflow data and configurationExport or copy your Langflow flows, models, and settings. This protects you if the upgrade causes problems. Use Langflow's export function or copy the data directory.
  5. Upgrade Langflow to version 1.10.1.rc0 or laterRun `pip install --upgrade langflow==1.10.1.rc0` or use your package manager to update. If you use Docker, update the base image tag to include the fixed version.
  6. Restart LangflowStop the Langflow service and start it again. If it runs in Docker, recreate the container. If it runs in a larger application, restart that application.
  7. Check that Langflow runs and worksLog in to Langflow and run a simple flow to confirm it starts and processes work. Check that your existing flows and data are still there.
  8. If Langflow was accessible before the fix, reset user passwordsForce all Langflow users to change their passwords. This prevents attackers who captured passwords from logging in again. If possible, check for any unauthorized users or API tokens and delete them.

How to confirm it is fixed: Run `pip show langflow` and confirm the version is 1.10.1.rc0 or later, then log in to Langflow and confirm that a test flow executes correctly.

SecurityElites Quick Fixes: copy and paste

Upgrade langflow with pipupgrade

pip install --upgrade "langflow>=1.10.1.rc0"
pip show langflow | grep Version

Pin it in requirements.txtupgrade

langflow>=1.10.1.rc0

Check installed Langflow versionfor this issue

pip show langflow | grep Version

List all Python packages to find Langflowfor this issue

pip list | grep -i langflow

Run the service in a locked-down containergeneral hardening

docker run --read-only --cap-drop ALL \
  --security-opt no-new-privileges --user 1000:1000 \
  -p 127.0.0.1:8080:8080 YOUR_IMAGE

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (CVE-2026-7873) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - langflow (PyPI): must be 1.10.1.rc0 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

You run Langflow 1.0.5 and discover it today. What must happen in the next hour?A good answer: Restrict network access to Langflow immediately (firewall rule or take it offline), then start the upgrade to 1.10.1.rc0 and test it.
After the upgrade, how do you confirm the fix is in place?A good answer: Run `pip show langflow` and verify the version is 1.10.1.rc0 or later, then log in and confirm a flow runs successfully.
Login logs show a user account 'admin' accessed Langflow from an IP in a country where you do not operate, the week before you found this advisory. What is your next step?A good answer: Assume the account was compromised, revoke its access immediately, check Langflow flow logs and server audit logs for what commands or files were accessed, and notify your security team.
Your Langflow instance connects to your company's data warehouse to build retrieval chains. If an attacker had credentials, what could they do?A good answer: They could query the data warehouse through Langflow to read sensitive data, or use OS commands on the Langflow server to access database connection files and connect directly.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## Langflow allows authenticated users to run any operating system command (CVE-2026-7873)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01403 https://securityelites.com/ai-vulnerabilities/cve-2026-7873-langflow-allows-authenticated-users-to-run-any-operating-system/

### Why this matters
An attacker with login credentials to Langflow can run any command on the server, read files with secrets and passwords, and take over the entire system. They could then move to other systems on the network. This is a complete compromise of the server and anything it can reach.

### What to do
1. Find where Langflow is installed: Check all servers and containers where your team runs Langflow. Look in pip list output, Docker images, and virtual environments. Note the version number for each one.
2. Check the version number: Run `pip show langflow` or check the Langflow UI settings page. If the version is 1.0.0 through 1.10.0 (inclusive), it is vulnerable. If it shows 1.10.1.rc0 or later, it is fixed.
3. Review access logs before the fix: Look at Langflow login records and API access logs from the past 90 days. Note which user accounts logged in, from which IP addresses, and when. Save this for later investigation if needed.
4. Back up Langflow data and configuration: Export or copy your Langflow flows, models, and settings. This protects you if the upgrade causes problems. Use Langflow's export function or copy the data directory.
5. Upgrade Langflow to version 1.10.1.rc0 or later: Run `pip install --upgrade langflow==1.10.1.rc0` or use your package manager to update. If you use Docker, update the base image tag to include the fixed version.
6. Restart Langflow: Stop the Langflow service and start it again. If it runs in Docker, recreate the container. If it runs in a larger application, restart that application.
7. Check that Langflow runs and works: Log in to Langflow and run a simple flow to confirm it starts and processes work. Check that your existing flows and data are still there.
8. If Langflow was accessible before the fix, reset user passwords: Force all Langflow users to change their passwords. This prevents attackers who captured passwords from logging in again. If possible, check for any unauthorized users or API tokens and delete them.

### Done when
- [ ] langflow is at 1.10.1.rc0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `pip show langflow` and confirm the version is 1.10.1.rc0 or later, then log in to Langflow and confirm that a test flow executes correctly.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 30 Jun 2026: Made public
  • 1 Dec 2026: Published

Official record

IBM Langflow OSS 1.0.0 through 1.10.0 allows authenticated attackers to execute arbitrary OS commands and read sensitive files including credentials, enabling complete system compromise and lateral movement.

Weakness type: CWE-94

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-7873

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 24 Oct 2026. Read the vendor advisory before changing a production system.