langflow
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
inspect_routes.pyscript utilizesimportlib.import_moduleto dynamically load a specified module for FastAPI route inspection. Similarly,check_component_skeleton.pyusesimportlib.util.spec_from_file_locationandexec_moduleto perform runtime validation of Langflow components. These are functional requirements for providing developer introspection tools for the platform. - [INDIRECT_PROMPT_INJECTION]: As an agent platform, Langflow naturally processes untrusted workflow definitions (JSON) and user inputs. The skill addresses this vulnerability surface through several mechanisms:
- Ingestion points:
lfx run,lfx serve, and thevalidate_flow_json.pyhelper process external JSON workflow files. - Boundary markers: The documentation explicitly instructs users not to execute untrusted flows without inspection and provides a
normalize_flow_file.pyscript to strip secrets. - Capability inventory: The Langflow runtime (executed via
lfxorlangflow) has broad capabilities including network access, file system operations, and subprocess execution depending on the components used in a flow. - Sanitization: The
normalize_flow_file.pyscript provides deterministic JSON output and secret stripping (clearing template values marked as passwords or database-backed), whilevalidate_flow_json.pyperforms static topology checks to prevent structural errors. - [DATA_EXFILTRATION]: The skill includes robust secret management practices. The
check_env_vars.pyscript automatically redacts values containing sensitive patterns such as 'KEY', 'TOKEN', 'SECRET', and 'PASSWORD'. Additionally, thenormalize_flow_file.pytool defaults to stripping credentials from flow exports to ensure that workflow definitions are safe for version control. - [COMMAND_EXECUTION]: The
executor-clidocumentation describes the use oflfx runandlfx serveto execute workflows. This includes support for Python graph scripts, with explicit warnings to the user that such scripts should only be run if trusted, as import-time code will execute.
Audit Metadata