Skip to main content

Langflow EUVDEUVD-2026-91120

| CVE-2026-51886 CRITICAL
Code Injection (CWE-94)
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid Langflow credentials / reach exposed API
  2. Delivery
    POST malicious Python to /api/v1/validate/code
  3. Exploit
    Server compiles and exec's unsandboxed code
  4. Execution
    Arbitrary code execution in server context
  5. Impact
    Host compromise / data theft

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires reaching the public-facing HTTP route POST /api/v1/validate/code on a Langflow server (up to and including v1.9.3) and submitting raw Python source, which is forwarded into a server-side compile/exec validation path with no sandboxing or entitlement guard. The description states the attacker is authenticated, so a valid Langflow account/session is the primary prerequisite and limiting factor - contradicting the input vector's PR:N; no user interaction, non-default configuration, or specific platform is otherwise required. Realistic risk is highest for internet-exposed instances, multi-tenant/shared deployments, or installations with disabled or weak authentication.

Impact

Signals are mixed. The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) scores 9.8 Critical, implying unauthenticated network RCE, but the description explicitly states 'An authenticated attacker can execute arbitrary Python code' - these conflict: the vector encodes PR:N while the narrative requires authentication, so the true base score is likely closer to ~9.0-9.1 with PR:L. Verify authentication requirement with the vendor/advisory before treating this as unauthenticated. Technical impact is total (C:H/I:H/A:H) - direct server-side arbitrary Python execution via /api/v1/validate/code with no sandboxing. Counterweight signals lower the urgency: EPSS is only 0.17% (6th percentile), there is NO CISA KEV listing (not confirmed actively exploited), yet publicly available exploit code exists (a GitHub gist PoC and issue). Net: this is a genuine high-priority RCE for any internet-exposed Langflow instance, but the low EPSS and absence of KEV suggest it is not yet under widespread automated exploitation; the authentication requirement (if real) further constrains it to attackers who already hold valid credentials, meaning the realistic risk is high for exposed/shared instances but not indiscriminate mass exploitation.

Exploit ScenarioDerived

An attacker with valid Langflow credentials (or on an instance where authentication is weak, shared, or disabled) sends an HTTP POST to /api/v1/validate/code containing malicious Python source. The endpoint compiles and executes the supplied code server-side without sandboxing, yielding arbitrary code execution in the Langflow process context. A public PoC gist and GitHub issue demonstrating the flaw already exist, lowering the skill barrier; the low attack complexity (AC:L) means no special timing or race conditions are required.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 06, 2026

Authenticated code injection in langflow-ai Langflow up to and including v1.9.3 lets any user holding a valid account execute arbitrary Python on the server by POSTing raw source to the /api/v1/validate/code endpoint, which feeds the input straight into a server-side compile/exec validation path without sandboxing or an entitlement check (CWE-94). The supplied CVSS score is 9.8 under a PR:N vector, but the authoritative assessment applies PR:L because exploitation requires a valid Langflow session, making authentication the primary limiting factor; impact on confidentiality, integrity, and availability is rated High across the board. EPSS is only 0.17% (6th percentile), Langflow is not in CISA KEV, and no public exploit code has been identified at time of analysis, so mass opportunistic exploitation is not currently indicated - the realistic risk concentrates on internet-exposed, multi-tenant, or weakly authenticated Langflow deployments.

RemediationAI

No vendor-released patch has been identified in the available intelligence at time of analysis, so remediation must begin with compensating controls rather than an upgrade version. The most direct mitigation is to block or restrict POST /api/v1/validate/code at the reverse proxy or API gateway for all callers that do not strictly require interactive code validation; the trade-off is that the Langflow UI's code editor validation/preview feature will stop working for legitimate users. Where the endpoint cannot be disabled, restrict it to known trusted source addresses and require authenticated sessions with the strongest available authentication (ideally SSO/MFA rather than shared or default credentials), since the assessed attack path hinges on obtaining a valid session. Run the Langflow server under a dedicated low-privilege OS account inside an isolated container or VM with no access to host credentials, cloud instance metadata, mounted secrets, or internal network segments, and apply egress filtering - this does not stop code execution but blunts post-exploitation impact. Operators of internet-exposed instances should prioritize removing direct public reachability of the backend API, and multi-tenant or shared Langflow deployments should be treated as highest risk. Monitor the upstream issue https://github.com/langflow-ai/langflow/issues/13336 and the ENISA EUVD entry (EUVD-2026-91120 / https://nvd.nist.gov/vuln/detail/CVE-2026-51886) for a patched release, and upgrade to the first fixed version once the vendor publishes it; audit server logs for anomalous POSTs to /api/v1/validate/code as a detection and retroactive-compromise indicator.

Affected VersionsENISA

n/a n/a

Affected Packages

pypi langflow fix: 1.10.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic code injection (CWE-94) in the Langflow backend API layer, specifically the code-validation route implemented in src/backend/base/langflow/api/v1/validate.py. Langflow is a Python-based low-code builder for LLM/AI workflows, and its backend exposes a code validation helper that is intended to let the UI check user-authored Python components before saving them. Instead of parsing the source statically or executing it inside a restricted interpreter, the endpoint forwards the submitted source into a server-side compile/exec path, so the submitted payload runs with the privileges of the Langflow server process. The multi-source record identifies the weak point as 'validate-post_validate_code-a-real-authenticated-http-post-to-api-v1' at validate.py line 13, describing a public-facing route that accepts raw Python with no visible entitlement guard and no sandboxing or other security control. The CPE string supplied is a null placeholder (cpe:2.3:a:n/a:n/a), and the EUVD affected-version field is likewise 'n/a n/a', so version scoping must be taken from the description: Langflow through v1.9.3. Tags (RCE, Python, Code Injection) align with the CWE-94 classification.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Remote HTTP endpoint (AV:N) with trivial exploitation (AC:L); description requires an authenticated attacker so PR:L not PR:N; unsandboxed exec gives full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 06, 2026 - 01:22 NVD
9.8 (CRITICAL)
CVE Published
Oct 01, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Oct 01, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

langflow-ai langflow v1.9.3 is affected by: Code Injection. The impact is: execute arbitrary code (remote). The component is: src/backend/base/langflow/api/v1/validate.py:validate-post_validate_code-a-real-authenticated-http-post-to-api-v1. The attack vector is: Attack surface: HTTP or browser-backed service path. A public-facing route accepts raw Python source and forwards it into a server-side compile/exec validation path without any visible entitlement guard. ¶¶ A weakness has been identified in langflow-ai langflow up to 1.9.3. langflow contains a code injection vulnerability in validate-post_validate_code-a-real-authenticated-http-post-to-api-v1 (src/backend/base/langflow/api/v1/validate.py:13). An authenticated attacker can execute arbitrary Python code on the server by submitting malicious code to the /api/v1/validate/code endpoint, which directly executes user-supplied code without sandboxing or security controls.

Technical POC Analysis

The bug is CWE-94 Code Injection in Langflow's backend API validation path.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Langflow, an AI workflow platform, is affected by a critical code injection vulnerability in versions up to and including v1.9.3 that allows an authenticated user to execute arbitrary Python on the server. Organizations running internet-exposed, multi-tenant, or weakly authenticated Langflow instances face potential full server compromise, data exposure, and service disruption. No public exploit identified at time of analysis and no vendor-released patch identified at time of analysis, but the high impact to confidentiality, integrity, and availability warrants immediate leadership attention.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable or restrict the /api/v1/validate/code endpoint to trusted users; enforce MFA and least privilege; block external access to Langflow management interfaces; use WAF rules to block POST requests containing raw Python source to that endpoint; segment multi-tenant deployments; monitor logs for unexpected compile/exec activity; and consider migrating to an alternative or isolated deployment until a fixed version is available.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular open-source LLM workflow builder, common but not ubiquitous infrastructure
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy