{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-0768 exists.","fix":"No fix has been published for CVE-2026-0768 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-0768 is a critical code injection vulnerability in Langflow Langflow, published on 23 Jan 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-0768 and fix it if it is affected.\n\nWhat it is: CVE-2026-0768 is a critical code injection vulnerability in Langflow Langflow, published on 23 Jan 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-0768 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-0768/ (Markdown: https://insights.sbomify.com/CVE-2026-0768/index.md)","id":"CVE-2026-0768","markdown":"https://insights.sbomify.com/CVE-2026-0768/index.md","name":"CVE-2026-0768","record":{"aliases":["GHSA-x5pr-rvjj-j6qm"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Langflow","requires_auth":"none","summary":"Remote attackers can execute arbitrary code as root via the validate endpoint due to improper validation of user-supplied Python code.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"zdi","cpe":[{"product":"langflow","vendor":"langflow"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Langflow code Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the handling of the code parameter provided to the validate endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of root.\n. Was ZDI-CAN-27322.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-09-01","github_poc":2,"max_poc_stars":0,"metasploit":1,"nuclei":1,"refs":[{"date":"2026-09-01T08:01:23Z","kind":"github_poc","ref":"https://github.com/HORKimhab/CVE-2026-0768","stars":0,"title":"CVE-2026-0768 - Draft or TODO"},{"date":"2026-09-02","kind":"metasploit","ref":"exploit/multi/http/langflow_unauth_rce_cve_2026_0768","stars":null,"title":"Langflow AI Validate Code Injection unauth RCE"},{"date":"2026-09-02T20:46:12Z","kind":"github_poc","ref":"https://github.com/rmhowe425/POC-CVE-2026-0768","stars":0,"title":"Proof of concept exploit code for CVE-2026-0768"},{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-0768.yaml","stars":null,"title":"Langflow \u003c=1.2.x - Unauthenticated Remote Code Execution via validate_code"}],"tier":"weaponised"},"has_fix":false,"headline":"Langflow code Code Injection Remote Code Execution Vulnerability","id":"CVE-2026-0768","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"langflow:langflow","products":["langflow:langflow"],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Langflow eval_custom_component_code Eval Injection Remote Code Execution Vulnerability","id":"CVE-2026-0769"},"packages":[],"prev":{"headline":"Open WebU's investigation showed that this describes the behavior of plain HTTP rather than a defect in the product.","id":"CVE-2026-0767"},"products":["Langflow"],"published":"2026-01-23","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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["Langflow"]},"summary":"Remote attackers can execute arbitrary code as root via the validate endpoint due to improper validation of user-supplied Python code.","url":"https://insights.sbomify.com/CVE-2026-0768/"}