Langflow OSS allows remote code execution through improper code handling

High 8.8SE Fix-First Score 48/100CVE-2026-127065SE-AIV-02050Remote 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 they want on the server where Langflow is installed. This could mean stealing data, installing malware, taking over the entire system, or using it to attack other systems on the network.

SecurityElites Manager Brief: the decision in one minute

Langflow versions up to 1.13.0 allow logged-in users to run arbitrary code on your server. This is a critical risk if you run Langflow in production or with sensitive data. You need to upgrade to 1.13.1 immediately.

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 engineering or DevOps team (whoever manages Langflow deployments).
Likely effortAbout 15 minutes to an hour per deployment: download the new version, upgrade using pip or Docker, and restart. It could take longer if you have many Langflow instances or need to coordinate downtime.

Questions to ask your team or supplier

  • Do we know which versions of Langflow are running in each environment (dev, staging, production)? Who is responsible for tracking and updating them?
  • Who has login access to our Langflow instances, and how often do we audit or revoke inactive accounts?
  • What tools, APIs, and data sources does Langflow connect to? Could an attacker use those connections to cause damage?

Message you can forward to the owning team

Security notice: Langflow OSS allows remote code execution through improper code handling (CVE-2026-127065)

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-127065-langflow-oss-allows-remote-code-execution-through-improper-code/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-02050

What is at stake in your AI setup

  • Prompts and flow definitions: an attacker could modify prompts to change how the AI behaves or inject malicious instructions.
  • Keys for AI providers: an attacker could steal API keys and credentials stored in Langflow to call AI services or access cloud systems.
  • Connected tools and systems: an attacker could use Langflow's integrations to access databases, APIs, or other services linked to Langflow.
  • Chat history and training data: an attacker could read or export conversations, files, or data used to build or fine-tune AI models.

Map where your company uses AI

Who is exposed

  • Teams running Langflow OSS versions 1.13.0 or earlier in production
  • Deployments where multiple users have login credentials
  • Systems where Langflow connects to sensitive tools, APIs, or data sources
  • Instances exposed to the internet or untrusted networks

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 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, restrict access to Langflow to only trusted users and networks. Remove or disable login accounts that are not actively used.
  • Block access to Langflow from the internet using a firewall or VPN.
  • Monitor Langflow logs closely for any signs of unusual activity and review flow definitions regularly for changes you did not authorize.

Signs it may already have been used against you

  • Langflow application logs: look for unusual code execution, errors in flow execution, or operations from unexpected users.
  • Server system logs: search for child processes spawned from the Langflow process, especially shell commands or Python script execution.
  • Authentication logs: find repeated login attempts or logins from unusual IP addresses or at unusual times.
  • File system: check for new or modified files in the Langflow data directory or unexpected scripts created after a suspected breach date.

Log searches to start from

Langflow child process execution (adapt field names to your logs)Splunk

process.parent_name=langflow OR process.parent_name=python | search process.name=bash OR process.name=sh OR process.name=powershell | stats count by process.name, user

Unusual Langflow authentication or file changes (adapt field names to your logs)Elastic

(source=langflow_auth AND event.action=login) OR (file.path=*langflow* AND event.action=creation) | stats count by user, source_ip, 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 installedList all servers and containers running Langflow. Check your deployment documentation, container registries, and Python environments. Note the version of each installation.
  2. Check the current versionIf Langflow is a Python package, run `pip show langflow` to see the installed version. If it is running in Docker, check the image tag or run `docker images | grep langflow`.
  3. Back up your Langflow dataIf Langflow stores flows, credentials, or other data, back it up now. For Docker, preserve the persistent storage volumes. For Python, back up any local data directories.
  4. Upgrade to Langflow OSS 1.13.1 (Python package)Run the command: `pip install --upgrade "langflow==1.13.1"`. Wait for it to complete.
  5. Upgrade to Langflow OSS 1.13.1 (Docker)Pull the new image: `docker pull langflowai/langflow:1.13.1`. Stop the old container and start a new one with the same persistent data volumes. Follow IBM's Docker upgrade instructions for your setup.
  6. Restart LangflowRestart the Langflow service or container. Confirm it starts without errors and that you can log in.
  7. Verify the upgradeCheck that the version is now 1.13.1 using `pip show langflow` or the Docker image tag. Access Langflow in your browser and confirm it works normally.
  8. Check for signs of past attacksReview Langflow logs and server logs for unusual activity from before the upgrade, such as unexpected code execution, failed login attempts, or new flows created by users who did not create them. If you find signs of intrusion, isolate the system and investigate further.

How to confirm it is fixed: Confirm that all Langflow instances report version 1.13.1 or later using `pip show langflow` or the Docker image tag, and that Langflow starts and operates normally after the upgrade.

SecurityElites Quick Fixes: copy and paste

Check installed Langflow version (Python)for this issue

pip show langflow | grep Version

Check Langflow Docker image versionfor this issue

docker images | grep langflow

List running Langflow containersfor this issue

docker ps | grep 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.

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 Langflow version that is safe from this vulnerability?A good answer: Langflow OSS 1.13.1 and later are safe; anything 1.13.0 or earlier is at risk.
Who can exploit this vulnerability?A good answer: Any attacker with valid login credentials to Langflow can exploit it remotely.
What should we do first if we think Langflow was attacked before we upgraded?A good answer: Review Langflow and system logs for unusual code execution or unexpected flow changes, and investigate any suspicious activity.
What command upgrades Langflow in a Python environment?A good answer: `pip install --upgrade "langflow==1.13.1"`

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 improper code handling (CVE-2026-127065)

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

### Why this matters
An attacker with login access to Langflow can run any code they want on the server where Langflow is installed. This could mean stealing data, installing malware, taking over the entire system, or using it to attack other systems on the network.

### What to do
1. Find where Langflow is installed
2. Check the current version
3. Back up your Langflow data
4. Upgrade to Langflow OSS 1.13.1 (Python package)
5. Upgrade to Langflow OSS 1.13.1 (Docker)
6. Restart Langflow
7. Verify the upgrade
8. Check for signs of past attacks

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

### 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
- [ ] Confirm that all Langflow instances report version 1.13.1 or later using `pip show langflow` or the Docker image tag, and that Langflow starts and operates normally after the upgrade.
- [ ] 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 improper neutralization of special elements used in code.

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

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.