Back to Labs
Security Advisory

CVE-2026-33017

About

Langflow is a tool for building and deploying AI-powered agents and workflows. In versions prior to 1.9.0, the POST /api/v1/build_public_tmp/{flow_id}/flow endpoint allows building public flows without requiring authentication. When the optional data parameter is supplied, the endpoint uses attacker-controlled flow data (containing arbitrary Python code in node definitions) instead of the stored flow data from the database. This code is passed to exec() with zero sandboxing, resulting in unauthenticated remote code execution. This is distinct from CVE-2025-3248, which fixed /api/v1/validate/code by adding authentication. The build_public_tmp endpoint is designed to be unauthenticated (for public flows) but incorrectly accepts attacker-supplied flow data containing arbitrary executable code. This issue has been fixed in version 1.9.0.

Weakness (CWE):CWE-94CWE-95CWE-306

Rainforest analyst review

Langflow, a visual builder for AI agents and workflows, exposes a POST /api/v1/build_public_tmp/{flow_id}/flow endpoint that is intentionally unauthenticated so public flows can be built. The flaw is that when the optional data parameter is supplied, the endpoint trusts that attacker-controlled flow data instead of the stored flow from the database. Flow node definitions can contain Python code, and that code is handed to exec() with no sandboxing, so an unauthenticated attacker who posts a crafted flow achieves direct remote code execution on the server.

Langflow instances are increasingly stood up to prototype and host AI agent workflows, often exposed to the network for collaboration and not hardened as production services, and they frequently hold API keys and credentials for the model providers and tools the flows orchestrate. That makes an unauthenticated RCE a straightforward path to both server compromise and secret theft. Upgrade to Langflow 1.9.0 or later, and until then keep any instance off the public internet and behind an authenticating proxy. Because the vulnerable endpoint is unauthenticated by design, review exposed servers for unexpected processes and exfiltration of stored credentials.

References

Related CVEs

Frequently asked questions

What is CVE-2026-33017?

Langflow is a tool for building and deploying AI-powered agents and workflows. In versions prior to 1.9.0, the POST /api/v1/build_public_tmp/{flow_id}/flow endpoint allows building public flows without requiring authentication.

How severe is CVE-2026-33017?

CVE-2026-33017 carries a CVSS 3.1 base score of 9.8, rated critical. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 99 out of 100, in the critical band.

How is CVE-2026-33017 exploited?

According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality High, integrity High and availability High.

Which products are affected by CVE-2026-33017?

Public advisories list the following as affected: langflow. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2026-33017?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email