Langflow OSS can run arbitrary code via tool-call interface before admin check

High 8.8SE Fix-First Score 48/100CVE-2026-128867SE-AIV-02052Remote code executionAI apps and chat interfacesMade public 3 Dec 2026

Download as PDF

What this means

An authenticated user without admin rights can run any code on the server running Langflow. This means they can steal secrets, read stored data, reach internal systems the server can reach, and potentially take control of the whole server.

SecurityElites Manager Brief: the decision in one minute

Langflow OSS up to version 1.13.0 lets any logged-in user run code that should only admins can run. This is a critical security risk. Upgrade to version 1.13.1 right away, and rotate any secrets the instance may have held.

SecurityElites Fix-First Score48 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team that manages Langflow deployments.
Likely effortAbout 30 minutes per deployment: download the fixed version, upgrade the package or container image, and restart. Longer if you run many instances or need to test first in a staging environment.

Questions to ask your team or supplier

  • Do we know which Langflow OSS instances are running in production, and which version each one is on? Do we have an inventory or scanning process to find them?
  • Have we checked Langflow logs and audit trails for any suspicious tool-call requests or non-admin users running flows with custom components in the last 30 days?
  • What secrets, API keys, and database credentials does each Langflow instance have access to, and which ones do we need to rotate after this upgrade?

Message you can forward to the owning team

Security notice: Langflow OSS can run arbitrary code via tool-call interface before admin check (CVE-2026-128867)

Severity: High (8.8 of 10)
SecurityElites Fix-First Score: 48 of 100
SecurityElites fix window: Within 30 days
Action: no fixed version is listed yet; apply the risk-reduction steps and watch the vendor advisory.
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-128867-langflow-oss-can-run-arbitrary-code-via-tool-call-interface/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-02052

What is at stake in your AI setup

  • Stored secrets and API keys: an attacker can read credentials for external AI services, databases or APIs that Langflow configuration holds.
  • Saved flows and custom components: flows can be read, modified or deleted, and custom Python code in components can be executed or extracted.
  • Connected tools and systems: any database, API endpoint or internal service that Langflow is configured to reach can be accessed by the attacker.
  • Compute resources: the server's CPU and memory are available for the attacker to use for their own computation, potentially causing denial of service or running malicious workloads.

Map where your company uses AI

Who is exposed

  • Shared Langflow instances where multiple teams or users have login access.
  • Cloud or SaaS deployments of Langflow OSS that serve multiple customers or projects.
  • Instances with secrets stored in environment variables or Langflow configuration.
  • Deployments connected to internal databases, APIs or other backend systems.

Upgrades you need

SoftwareAffected versionsMove to
IBM Langflow OSSEvery version up to and including 1.13.0No fixed version recorded. Follow the steps below.

The fixed version here was taken from the wording of the official description, because the national database has not listed it yet.

Am I affected?

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

SecurityElites Developer Brief: the technical picture

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

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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 these vulnerabilities now by upgrading Langflow OSS installations to Langflow OSS 1.13.1.Review the Langflow OSS 1.13.1 release notes https://github.com/langflow-ai/langflow/releases/tag/v1.13.1 and follow the installation instructions for your deployment:* Python package: install Langflow 1.13.1 from PyPI https://pypi.org/project/langflow/1.13.1/ with pip install --upgrade "langflow==1.13.1", following the installation instructions https://docs.langflow.org/get-started-installation . * Docker: use langflowai/langflow:1.13.1 and follow the Docker upgrade instructions https://docs.langflow.org/deployment-docker#upgrade-the-langflow-docker-i

If you cannot upgrade today

  • Restrict network access to Langflow to only trusted internal IP addresses or a VPN until you can upgrade.
  • Disable the Model Context Protocol (MCP) tool-call interface if you do not use it; check Langflow configuration or documentation for how to disable it.
  • Remove or restrict non-administrator user accounts until the upgrade is complete, so only admins can access Langflow.

Signs it may already have been used against you

  • Check Langflow application logs for tool-call requests that include unexpected or extra arguments not defined in the saved flow.
  • Look for requests to the tool-call API endpoint from non-administrator users that execute flows with custom components.
  • Search for error messages in logs that indicate code execution or component loading failed during authentication checks.
  • Review the audit log (if enabled) for any flows with custom components executed by non-admin accounts or at unusual times.

Log searches to start from

Tool-call API requests from non-admin users (adapt field names to your logs)Splunk

sourcetype=langflow OR component=langflow (request_path="*tool*call*" OR request_path="*mcp*") user!=admin status=success | stats count by user, request_path, timestamp

Langflow component execution with extra arguments (adapt field names to your logs)Elastic

source:langflow* AND (endpoint:"tool-call" OR endpoint:"mcp") AND arguments_count > expected_arguments | fields timestamp, user, endpoint, arguments_count

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 runningCheck whether you run Langflow as a Python package (pip install), a Docker container, or another way. Note the current version: run `langflow --version` for the Python package, or check the container image tag for Docker.
  2. Back up configuration and dataIf Langflow stores flows, secrets or configuration files on disk, make a copy of that directory. If you use a database, take a backup.
  3. Upgrade the Python package to 1.13.1If you installed Langflow with pip, run `pip install --upgrade "langflow==1.13.1"`. Then restart the Langflow process or service.
  4. Or upgrade the Docker container to 1.13.1If you use Docker, update your compose file or deployment to use the image tag `langflowai/langflow:1.13.1`. Restart the container.
  5. Confirm the upgrade workedRun `langflow --version` (for Python package) or check the running container image (for Docker) and verify it shows version 1.13.1 or later.
  6. Rotate secrets if the instance was exposedIf this Langflow instance ran any version up to 1.13.0 in production and allowed multiple authenticated users, assume any secrets stored in it may have been accessed. Rotate API keys, database passwords, and other credentials that were accessible to Langflow.
  7. Review access logsLook at Langflow logs and any reverse proxy or load balancer logs for the period the instance was at risk. Search for suspicious tool-call requests or unexpected argument patterns (see Detect section below).
  8. Review user activityIf your Langflow tracks user login and flow execution, check for any unexpected flows run by non-admin users or any new flows created without approval.

How to confirm it is fixed: Run `langflow --version` (for Python package) or confirm the running container image is `langflowai/langflow:1.13.1` or later (for Docker), and check that no errors occur when the Langflow process starts and responds to requests.

SecurityElites Quick Fixes: copy and paste

Check installed Langflow version (Python package)for this issue

langflow --version

Check running Docker container versionfor this issue

docker inspect langflow-container-name | grep -i image

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.

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.

What is the minimum version of Langflow OSS that is not affected by this vulnerability?A good answer: Langflow OSS 1.13.1 or later is not affected; versions 1.0.0 through 1.13.0 are vulnerable.
What type of user can exploit this vulnerability?A good answer: An authenticated user without administrator rights can exploit it; they do not need to be an admin.
What can an attacker do if they exploit this vulnerability?A good answer: They can run arbitrary code on the server, read or access any secrets and data the server can reach, and compromise internal systems connected to the server.
Which part of Langflow is affected?A good answer: The Model Context Protocol (MCP) tool-call interface is affected; it checks for admin rights after building the flow instead of before, allowing non-admins to run code.

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 OSS can run arbitrary code via tool-call interface before admin check (CVE-2026-128867)

**Severity:** High 8.8  |  **SE Fix-First Score:** 48/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-02052 https://securityelites.com/ai-vulnerabilities/cve-2026-128867-langflow-oss-can-run-arbitrary-code-via-tool-call-interface/

### Why this matters
An authenticated user without admin rights can run any code on the server running Langflow. This means they can steal secrets, read stored data, reach internal systems the server can reach, and potentially take control of the whole server.

### What to do
1. Find where Langflow is running
2. Back up configuration and data
3. Upgrade the Python package to 1.13.1
4. Or upgrade the Docker container to 1.13.1
5. Confirm the upgrade worked
6. Rotate secrets if the instance was exposed
7. Review access logs
8. Review user activity

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-128867-langflow-oss-can-run-arbitrary-code-via-tool-call-interface/

### Done when
- [ ] The risk-reduction steps are applied and the vendor advisory is being watched for a fixed version
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `langflow --version` (for Python package) or confirm the running container image is `langflowai/langflow:1.13.1` or later (for Docker), and check that no errors occur when the Langflow process starts and responds to requests.
- [ ] 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

  • 3 Dec 2026: Made public
  • 3 Dec 2026: Fixed version added, from the vendor's own CVE record
  • 3 Dec 2026: Fixed version added, from the wording of the official description
  • 3 Dec 2026: Published
  • 3 Dec 2026: Fixed version added, from the wording of the official description

Official record

IBM Langflow OSS 1.0.0 through 1.13.0 Model Context Protocol (MCP) tool-call interface is intended to let authenticated clients run saved flows as tools, with custom component code restricted to administrators when that restriction is enabled. The interface built the stored flow, which executed custom component code, before the administrator-only check was applied. An authenticated attacker without administrator rights could send a tool call with an additional, unexpected argument to run arbitrary code in the server process. This could allow the attacker to access configured secrets and stored data, and to reach internal services.

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-128867

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 3 Dec 2026. Read the vendor advisory before changing a production system.