Langflow OSS allows remote code execution through AST denylist bypass

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

Download as PDF

What this means

An attacker with login access to Langflow can run any code on the server where it is installed. This means they could steal data, modify flows and models, take over connected systems, or shut down the service. Any API key or credential stored in Langflow becomes accessible to them.

SecurityElites Manager Brief: the decision in one minute

Langflow OSS up to version 1.13.0 allows attackers with login access to run code on your server. This risks your data, credentials, and all connected systems. Upgrade immediately to 1.13.1.

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 responsible for Langflow deployment and operations.
Likely effortAbout 15 to 30 minutes per deployment: download the new version, run the upgrade command, and restart the service. Docker deployments may take longer if data volumes need careful migration.

Questions to ask your team or supplier

  • Do we know which Langflow instances are running in production, and have we tested the upgrade procedure on a non-production instance first?
  • What credentials and API keys are stored in Langflow flows, and have we documented which external systems could be affected if those keys were compromised?
  • If Langflow was running an older version for weeks or months, do we have audit logs for the connected services to detect unauthorized access in that time window?

Message you can forward to the owning team

Security notice: Langflow OSS allows remote code execution through AST denylist bypass (CVE-2026-120069)

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-120069-langflow-oss-allows-remote-code-execution-through-ast-denylist/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-02046

What is at stake in your AI setup

  • Prompts and flow logic: attacker could read, modify, or extract proprietary prompts and workflow definitions.
  • API keys and credentials: all stored keys for AI providers (OpenAI, Anthropic, etc.) and external services become readable and usable by the attacker.
  • Retrieval and training data: documents, datasets, and knowledge bases connected to flows could be copied or poisoned.
  • Compute and billing: attacker could run expensive operations or queries, increasing your cloud and API costs without authorization.

Map where your company uses AI

Who is exposed

  • Langflow OSS instances running version 1.13.0 or earlier with network access.
  • Teams using Langflow in production or with access to live data and credentials.
  • Deployments where multiple users or external users have login accounts.
  • Systems where Langflow connects to databases, APIs, or other services via stored keys.

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

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 and follow the installation instructions for your deployment: Python package: install Langflow 1.13.1 from PyPI with pip install --upgrade "langflow==1.13.1", following the installation instructions. Docker: use langflowai/langflow:1.13.1 and follow the Docker upgrade instructions to pull the image and restart the deployment while preserving its persistent data. Some of these issues were first addressed in earlier Langflow OSS releases (1.11.2, 1.12.6, 1.12.7, and 1.13.0); those corrections are included in Langflow OSS 1.13.

If you cannot upgrade today

  • Until you can upgrade: disable or restrict login access to Langflow to only trusted internal users on a private network. Remove any external-facing network routes or firewall rules that allow internet access.
  • Rotate all API keys and credentials stored in Langflow flows immediately. Document which keys were exposed.
  • If Langflow connects to production systems, isolate it from those systems by removing or disabling those connection configurations until after the upgrade.

Signs it may already have been used against you

  • Search Langflow application logs for unusual execution patterns or errors during code evaluation, especially in the weeks before the upgrade was planned.
  • Look for login attempts from unexpected IP addresses or at unusual times, particularly those followed by flow or configuration changes.
  • Check for new or modified flows that use code blocks or custom Python, especially those created by or run after a user account was compromised.
  • Review audit logs of connected databases and APIs for unexpected queries, deletions, or access patterns in the same time window.

Log searches to start from

Login attempts and code execution events in Langflow (adapt field names to your logs)Splunk

source="langflow" (login OR authentication OR execute OR eval OR code) | stats count by user, source_ip, action

Flows modified by authenticated users around suspected compromise window (adapt field names)Elastic

service:langflow AND (action:flow_modified OR action:code_executed) | group_by user, 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 whether Langflow runs as a Python package on your servers or as a Docker container. For Python, note the installation path. For Docker, note the container name and host. Document which systems run Langflow.
  2. Check the current versionFor Python: run `pip show langflow` and record the version. For Docker: run `docker inspect langflowai/langflow:latest` or check the image tag in your deployment. The version must be 1.13.0 or earlier to need this fix.
  3. Back up data and configurationFor Python: copy the Langflow data directory (typically `.langflow` or the configured data path). For Docker: use `docker cp` to back up mounted volumes or use your container's snapshot feature. Ensure you can restore if the upgrade fails.
  4. Upgrade to Langflow 1.13.1For Python: run `pip install --upgrade "langflow==1.13.1"` and wait for completion. For Docker: pull the new image with `docker pull langflowai/langflow:1.13.1`, then stop the old container, start a new one with the same volume mounts, and verify the data persists.
  5. Restart the serviceFor Python: stop the Langflow process (kill the running process or use your process manager) and start it again with the same command you used before. For Docker: the new container is already running after the previous step. Wait 30 seconds for it to be fully ready.
  6. Verify the upgrade workedFor Python: run `pip show langflow` and confirm the version is 1.13.1. For Docker: run `docker inspect langflowai/langflow:1.13.1 | grep -i version` or access the Langflow web interface and check the version in settings or logs. All users should be able to log in and access their flows.
  7. Review access logs for signs of exploitationCheck Langflow logs (in `~/.langflow/logs` for Python or container logs for Docker) for unusual activity in the period before the upgrade, such as unexpected code execution, errors, or actions from unfamiliar accounts.
  8. Rotate credentials and audit connected systemsChange all passwords and API keys for accounts that have access to Langflow. Check connected databases, APIs, and external services for unauthorized changes or data access. Review audit logs of those systems for the past month.

How to confirm it is fixed: Run `pip show langflow | grep Version` for Python or check the container image tag for Docker and confirm the output shows 1.13.1 or later.

SecurityElites Quick Fixes: copy and paste

Check Langflow version (Python)for this issue

pip show langflow | grep Version

Check Langflow Docker image versionfor this issue

docker inspect langflowai/langflow:1.13.1 --format='{{.RepoTags}}'

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.

How would you confirm that Langflow 1.13.1 is running after an upgrade?A good answer: Run `pip show langflow` or check the Docker image tag and verify the Version field shows exactly 1.13.1, then confirm you can log in and access the flows without errors.
If you found that someone logged into Langflow from an unfamiliar IP address before the upgrade, what should you check next?A good answer: Review Langflow flow modification logs and audit logs of any database or API connected to Langflow from that time period to see if data was accessed or changed.
What is the main way this vulnerability could be exploited?A good answer: An attacker with a valid login account could use code patterns that bypass security checks to run arbitrary code on the Langflow server.
Why do we need to rotate credentials after finding this vulnerability in an old version?A good answer: If the vulnerability was exploited before the upgrade, the attacker would have access to all API keys and passwords stored in Langflow, so they must be replaced.

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 allows remote code execution through AST denylist bypass (CVE-2026-120069)

**Severity:** High 8.8  |  **SE Fix-First Score:** 48/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-02046 https://securityelites.com/ai-vulnerabilities/cve-2026-120069-langflow-oss-allows-remote-code-execution-through-ast-denylist/

### Why this matters
An attacker with login access to Langflow can run any code on the server where it is installed. This means they could steal data, modify flows and models, take over connected systems, or shut down the service. Any API key or credential stored in Langflow becomes accessible to them.

### What to do
1. Find where Langflow is installed
2. Check the current version
3. Back up data and configuration
4. Upgrade to Langflow 1.13.1
5. Restart the service
6. Verify the upgrade worked
7. Review access logs for signs of exploitation
8. Rotate credentials and audit connected systems

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-120069-langflow-oss-allows-remote-code-execution-through-ast-denylist/

### 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 `pip show langflow | grep Version` for Python or check the container image tag for Docker and confirm the output shows 1.13.1 or later.
- [ ] 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 could allow a remote authenticated attacker to execute arbitrary code due to an AST denylist bypass allowing code-as-data patterns to evade the check.

Weakness type: CWE-693

Use this record in your own tools

Get this record as JSON

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

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.