Langflow
Langflow has Remote Code Execution in CSV Agent
Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.8.0, the CSV Agent node in Langflow hardcodes `allow_dangerous_code=True`, which automatically exposes LangChain’s Python REPL tool (`python_repl_ast`). As a result, an attacker can execute arbitrary Python and OS commands on the server via prompt injection, leading to full Remote Code Execution (RCE). Version 1.8.0 fixes the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.8.0
Fixed in 1.8.0
Mitigation
Upgrade langflow to 1.8.0 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 5.6 days after publication; not in CISA KEV. First PoC: Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow (created 3 Mar 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow | 3 Mar 2026 +5.6 d | 2 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| shinthink/CVE-2026-27966 | 5 Jul 2026 +130 d | 2 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Langflow RCE (exploit/multi/http/langflow_rce_cve_2026_27966) | 9 Apr 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /api/v1/auto_login
- Seen in
- 1 repo: shinthink/CVE-2026-27966
- Evidence
- shinthink/CVE-2026-27966/README.md:93
GET /api/v1/flows/basic_examples/
- Seen in
- 1 repo: shinthink/CVE-2026-27966
- Evidence
- shinthink/CVE-2026-27966/README.md:214
GET /api/v1/version
- Seen in
- 1 repo: shinthink/CVE-2026-27966
- Evidence
- shinthink/CVE-2026-27966/README.md:208
GET /api/{var}
- Query
c=id- Seen in
- 1 repo: shinthink/CVE-2026-27966
- Evidence
- shinthink/CVE-2026-27966/cve_2026_27966.py:173
POST /api/v1/build/{var}/vertices
- Body markers
"id":"bkdr""type":"CustomComponent""data""code""display_name":"X"inapplication/json- Seen in
- 1 repo: shinthink/CVE-2026-27966
- Evidence
- shinthink/CVE-2026-27966/README.md:220
POST /api/v1/custom_component
- Body markers
"name""code":"""from fastapi import APIRouter, Query""display_name":"X"inapplication/json- Seen in
- 1 repo: shinthink/CVE-2026-27966
- Evidence
- shinthink/CVE-2026-27966/cve_2026_27966.py:171
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/auto_login(?:[?#].*)?$
(?i)^/api/v1/flows/basic_examples/(?:[?#].*)?$
(?i)^/api/v1/version(?:[?#].*)?$
(?i)^/api/[^/?#]*\?(?:.*&)?c=id
(?i)^/api/v1/build/[^/?#]*/vertices(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-27966 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/auto_login"; reference:url,poc.griffinguard.io/cve/CVE-2026-27966; classtype:web-application-attack; sid:9643030; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-27966 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/flows/basic_examples/"; reference:url,poc.griffinguard.io/cve/CVE-2026-27966; classtype:web-application-attack; sid:9719298; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-27966 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/version"; reference:url,poc.griffinguard.io/cve/CVE-2026-27966; classtype:web-application-attack; sid:9144873; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-27966 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/"; http.uri; content:"c=id"; reference:url,poc.griffinguard.io/cve/CVE-2026-27966; classtype:web-application-attack; sid:9124548; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-27966 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/build/"; http.uri; content:"/vertices"; http.request_body; content:"|22|id|22|:|22|bkdr|22|"; http.request_body; content:"|22|type|22|:|22|CustomComponent|22|"; http.request_body; content:"|22|data|22|"; http.request_body; content:"|22|code|22|"; http.request_body; content:"|22|display_name|22|:|22|X|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-27966; classtype:web-application-attack; sid:9705923; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: langflow-ai langflow exploit attempt (CVE-2026-27966)
id: gg-pocmon-cve-2026-27966-9643030
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27966. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27966
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/auto_login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27966
title: langflow-ai langflow exploit attempt (CVE-2026-27966)
id: gg-pocmon-cve-2026-27966-9719298
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27966. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27966
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/flows/basic_examples/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27966
title: langflow-ai langflow exploit attempt (CVE-2026-27966)
id: gg-pocmon-cve-2026-27966-9144873
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27966. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27966
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/version'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27966
title: langflow-ai langflow exploit attempt (CVE-2026-27966)
id: gg-pocmon-cve-2026-27966-9124548
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27966. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27966
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/'
cs-uri-query|contains|all:
- 'c=id'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27966
title: langflow-ai langflow exploit attempt (CVE-2026-27966)
id: gg-pocmon-cve-2026-27966-9705923
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27966. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27966
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/build/'
- '/vertices'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27966