Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid Langflow credentials / reach exposed API
-
DeliveryPOST malicious Python to /api/v1/validate/code
-
ExploitServer compiles and exec's unsandboxed code
-
ExecutionArbitrary code execution in server context
-
ImpactHost 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-91120
GHSA-qqw9-2vj9-hx7r
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB