Home

Description

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.9.0, the Agentic Assistant feature in Langflow executes LLM-generated Python code during its validation phase. Although this phase appears intended to validate generated component code, the implementation reaches dynamic execution sinks and instantiates the generated class server-side. In deployments where an attacker can access the Agentic Assistant feature and influence the model output, this can result in arbitrary server-side Python execution. Version 1.9.0 fixes the issue.

PUBLISHED Reserved 2026-03-24 | Published 2026-03-27 | Updated 2026-04-02 | Assigner GitHub_M




CRITICAL: 9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Problem types

CWE-94: Improper Control of Generation of Code ('Code Injection')

Product status

< 1.9.0
affected

References

github.com/...ngflow/security/advisories/GHSA-v8hw-mh8c-jxfc

github.com/...rc/backend/base/langflow/agentic/api/router.py

github.com/...c/backend/base/langflow/agentic/api/schemas.py

github.com/...se/langflow/agentic/helpers/code_extraction.py

github.com/...nd/base/langflow/agentic/helpers/validation.py

github.com/...langflow/agentic/services/assistant_service.py

github.com/...langflow/agentic/services/assistant_service.py

github.com/...langflow/agentic/services/assistant_service.py

github.com/...fc/src/backend/base/langflow/api/utils/core.py

github.com/...d1fc/src/backend/base/langflow/api/v1/login.py

github.com/...c/backend/base/langflow/services/auth/utils.py

github.com/...c/backend/base/langflow/services/auth/utils.py

github.com/...1c2cfbcd1fc/src/lfx/src/lfx/custom/validate.py

github.com/...1c2cfbcd1fc/src/lfx/src/lfx/custom/validate.py

github.com/...1c2cfbcd1fc/src/lfx/src/lfx/custom/validate.py

github.com/...d1fc/src/lfx/src/lfx/services/settings/auth.py

cve.org (CVE-2026-33873)

nvd.nist.gov (CVE-2026-33873)

Download JSON