What happened
Attacker sends a single unauthenticated POST request to /api/v2/files with a filename parameter containing ../ path traversal sequences. Auto-login returns a valid session token with no credentials. Attacker writes arbitrary files to the server filesystem, achieving remote code execution.
Why it matters
Full server-level RCE on Langflow instances. Because Langflow deployments typically hold LLM API keys, agent workflow definitions, and credentials for downstream services (databases, APIs), a compromised instance gives an attacker control over the entire agentic pipeline and all credentials it holds. Active exploitation observed writing test files to victim systems. Approximately 7,000 instances publicly exposed.
Missing authorization check
The file upload endpoint required no authentication. Auto-login defaults should require explicit scope-limited tokens for any file-modifying operation. File write operations should validate that the resolved path remains within an allowed directory before writing.
Would PP block it?
CVE-2026-5027 is a pre-agent attack: the attacker exploits the Langflow server layer before any agent session begins. PP's Runtime Gate enforces authorization on agent tool calls and actions but cannot gate unauthenticated HTTP requests to vulnerable API endpoints. Once the attacker achieves RCE on the Langflow server, they can read PP-bound credentials and impersonate any agent action. Full coverage requires hardening the Langflow runtime itself (auth, path validation) as a prerequisite to PP enforcement.