{"answers":{"affected":"9 open source packages ship an affected version, including langflow, langflow-base and lfx.","exploited":"There is no known exploitation of CVE-2026-105697 in the wild and no public exploit code.","fix":"Upgrade langflow to 1.10.3 or later.","what":"CVE-2026-105697 is a critical command injection vulnerability in langflow-ai langflow, published on 5 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-105697 and fix it if it is affected.\n\nWhat it is: CVE-2026-105697 is a critical command injection vulnerability in langflow-ai langflow, published on 5 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-105697 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- langflow (PyPI): affected from 1.1.2; fixed in 1.10.3\n- langflow (PyPI): affected from 1.1.2; fixed in 1.10.3\n- langflow (PyPI): affected from 1.1.2; fixed in 1.10.3\n- langflow-base (PyPI): affected from 0.1.2; fixed in 0.10.3\n- langflow-base (PyPI): affected from 0.1.2; fixed in 0.10.3\n- langflow-base (PyPI): affected from 0.1.2; fixed in 0.10.3\n- lfx (PyPI): affected all versions; fixed in 1.10.3\n- lfx (PyPI): affected all versions; fixed in 1.10.3\n- lfx (PyPI): affected all versions; fixed in 1.10.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-105697/ (Markdown: https://insights.sbomify.com/CVE-2026-105697/index.md)","id":"CVE-2026-105697","markdown":"https://insights.sbomify.com/CVE-2026-105697/index.md","name":"CVE-2026-105697","record":{"aliases":["GHSA-w794-rj3p-xv45","PYSEC-2026-4237","PYSEC-2026-4239","PYSEC-2026-4241"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"AI workflow builder","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary OS commands on the host by injecting malicious commands into MCP server configurations, leading to remote code execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Langflow is a tool for building and deploying AI-powered agents and workflows. Before Langflow 1.10.3, the MCP stdio transport launched whatever command / args a user put in an MCP server configuration, with no allowlist and (before 1.10.3) wrapped in bash -c \"exec {command} ...\". Any user able to reach the MCP server settings (\"Settings → MCP Servers → Add MCP Server\", POST/PATCH /api/v2/mcp/servers/{server_name}) or to build a flow with the MCP Tools component could add a \"server\" whose command is an arbitrary OS command (touch, rm -rf, a reverse shell, ...). The command runs on the Langflow host as the Langflow process user as soon as Langflow tries to connect to the server (listing servers, loading tools, running the flow) — even when the UI then reports that the stdio server failed to start. With the default LANGFLOW_AUTO_LOGIN=true, GET /api/v1/auto_login hands out a token without credentials, so on an exposed instance running the default configuration this is reachable without an account. AUTO_LOGIN is documented as a development-only setting; with it disabled, any authenticated (non-admin) user can exploit it. This issue is fixed in Langflow 1.10.3, langflow-base 0.10.3, and lfx 1.10.3.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration","id":"CVE-2026-105697","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":9,"n_references":9,"next":{"headline":"Langflow: Cross-user flow access and vertex execution via deprecated /api/v1/build/{flow_id}/vertices endpoints","id":"CVE-2026-105698"},"packages":[{"ecosystem":"PyPI","fixed":["1.10.3"],"introduced":["1.1.2"],"last_affected":[],"package":"langflow","purl":null,"source":"GHSA-w794-rj3p-xv45"},{"ecosystem":"PyPI","fixed":["1.10.3"],"introduced":["1.1.2"],"last_affected":[],"package":"langflow","purl":"pkg:pypi/langflow","source":"GHSA-w794-rj3p-xv45"},{"ecosystem":"PyPI","fixed":["1.10.3"],"introduced":["1.1.2"],"last_affected":[],"package":"langflow","purl":"pkg:pypi/langflow","source":"PYSEC-2026-4237"},{"ecosystem":"PyPI","fixed":["0.10.3"],"introduced":["0.1.2"],"last_affected":[],"package":"langflow-base","purl":null,"source":"GHSA-w794-rj3p-xv45"},{"ecosystem":"PyPI","fixed":["0.10.3"],"introduced":["0.1.2"],"last_affected":[],"package":"langflow-base","purl":"pkg:pypi/langflow-base","source":"GHSA-w794-rj3p-xv45"},{"ecosystem":"PyPI","fixed":["0.10.3"],"introduced":["0.1.2"],"last_affected":[],"package":"langflow-base","purl":"pkg:pypi/langflow-base","source":"PYSEC-2026-4239"},{"ecosystem":"PyPI","fixed":["1.10.3"],"introduced":["0"],"last_affected":[],"package":"lfx","purl":null,"source":"GHSA-w794-rj3p-xv45"},{"ecosystem":"PyPI","fixed":["1.10.3"],"introduced":["0"],"last_affected":[],"package":"lfx","purl":"pkg:pypi/lfx","source":"GHSA-w794-rj3p-xv45"},{"ecosystem":"PyPI","fixed":["1.10.3"],"introduced":["0"],"last_affected":[],"package":"lfx","purl":"pkg:pypi/lfx","source":"PYSEC-2026-4241"}],"prev":{"headline":"Missing authorization in penpot","id":"CVE-2026-105696"},"products":["langflow","langflow-base","lfx"],"published":"2026-10-05","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-09","vendors":["langflow-ai"]},"summary":"Attackers can execute arbitrary OS commands on the host by injecting malicious commands into MCP server configurations, leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2026-105697/"}