CVE Tools

CVE-2026-5027

Langflow - Path Traversal Arbitrary File Write via upload_user_file

Published: Mar 27, 2026Updated: Aug 18, 2026 Sources: CVE List NVDCWE-22

Description

The 'POST /api/v2/files' endpoint does not sanitize the 'filename' parameter from the multipart form data, allowing an attacker to write files to arbitrary locations on the filesystem using path traversal sequences ('../').

In plain language

AI Act now

CVE-2026-5027 is a Langflow flaw that lets an internet attacker write files to arbitrary places on your server, and it is actively being exploited—so if you run Langflow that’s exposed to the internet, you should treat this as urgent.

Executive summary

CVE-2026-5027 is a path traversal/arbitrary file write in Langflow’s file upload handling (“upload_user_file” / POST /api/v2/files) caused by missing filename sanitization; attackers can send network requests to traverse directories and write files, with reported unauthenticated access that can lead to session token acquisition and remote code execution (RCE).

If affected, business impact
Server compromiseMalware/RCE riskCustomer data exposureService disruption

What to do now

  1. Check whether your Langflow instance is reachable from the public internet (not just internal networks) and whether POST /api/v2/files is accessible externally.
  2. Restrict access immediately (IP allowlist/VPN only) so only trusted users or networks can reach Langflow.
  3. Review server access logs around the time of any suspicious activity for unusual POST requests to /api/v2/files and abnormal multipart upload patterns.
  4. Ensure you have a plan to apply the official Langflow fix as soon as it is released (no fixed version is available yet based on current information).
  5. If you cannot quickly restrict external access, consider temporarily shutting down the exposed Langflow service until the patch is available.
May need vendor / contractor work

CVSS Vector Breakdown

AV:NAC:LPR:LUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:LPrivileges Required
Low
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

langflow
commercialaka langflow desktop, langflow-base

Exploitability

Official Patch Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

2 techniques
Collection
Discovery
View detailed technique mapping

References

9

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-5027 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows