CVE-2026-48519: CWE-94: Improper Control of Generation of Code ('Code Injection') in langflow-ai langflow
Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.2, the "Shareable Playground" (or "Public Flows" in code) contains a critical RCE vulnerability. Shareable Playground feature works by enabling the execution of workflows by unauthenticated users, by accessing a link. Specifically, it enables the route /api/v1/build_public_tmp to execute any public flow, given a public flow ID. When the route executes the flow, it allows for providing arbitrary custom Python code as the nodes code, inside the JSON payload. The vulnerable field is data.nodes[X].data.node.template.code.value. This vulnerability is fixed in 1.9.2.
AI Analysis
Technical Summary
The vulnerability in langflow (CVE-2026-48519) is an improper control of code generation (CWE-94) that leads to remote code execution. The Shareable Playground feature, which allows unauthenticated execution of public flows via a specific API route, improperly handles user-supplied Python code embedded in the JSON payload. Specifically, the data.nodes[X].data.node.template.code.value field can contain arbitrary code that is executed when the flow runs. This allows attackers to execute arbitrary code remotely without authentication. The vulnerability is resolved in langflow version 1.9.2.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Python code on the server hosting langflow, leading to complete compromise of confidentiality, integrity, and availability of the affected system. The CVSS score of 9.6 reflects critical severity with network attack vector, low attack complexity, no privileges required, user interaction required, and scope change. This can result in full system takeover.
Mitigation Recommendations
Upgrade langflow to version 1.9.2 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Until the upgrade is applied, disable or restrict access to the Shareable Playground feature or the /api/v1/build_public_tmp route to prevent unauthenticated execution of public flows.
CVE-2026-48519: CWE-94: Improper Control of Generation of Code ('Code Injection') in langflow-ai langflow
Description
Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.2, the "Shareable Playground" (or "Public Flows" in code) contains a critical RCE vulnerability. Shareable Playground feature works by enabling the execution of workflows by unauthenticated users, by accessing a link. Specifically, it enables the route /api/v1/build_public_tmp to execute any public flow, given a public flow ID. When the route executes the flow, it allows for providing arbitrary custom Python code as the nodes code, inside the JSON payload. The vulnerable field is data.nodes[X].data.node.template.code.value. This vulnerability is fixed in 1.9.2.
CVSS v3.1
Score 9.6critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in langflow (CVE-2026-48519) is an improper control of code generation (CWE-94) that leads to remote code execution. The Shareable Playground feature, which allows unauthenticated execution of public flows via a specific API route, improperly handles user-supplied Python code embedded in the JSON payload. Specifically, the data.nodes[X].data.node.template.code.value field can contain arbitrary code that is executed when the flow runs. This allows attackers to execute arbitrary code remotely without authentication. The vulnerability is resolved in langflow version 1.9.2.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Python code on the server hosting langflow, leading to complete compromise of confidentiality, integrity, and availability of the affected system. The CVSS score of 9.6 reflects critical severity with network attack vector, low attack complexity, no privileges required, user interaction required, and scope change. This can result in full system takeover.
Mitigation Recommendations
Upgrade langflow to version 1.9.2 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Until the upgrade is applied, disable or restrict access to the Shareable Playground feature or the /api/v1/build_public_tmp route to prevent unauthenticated execution of public flows.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-21T16:18:10.619Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3ab6d9eed863c81e4f9e94
Added to database: 06/23/2026, 16:39:53 UTC
Last enriched: 06/23/2026, 16:56:15 UTC
Last updated: 06/23/2026, 19:09:57 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.