{"answers":{"affected":"3 open source packages ship an affected version, including langflow. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2025-34291 in the wild since at least 21 May 2026.","fix":"Upgrade langflow to 1.7.0 or later. US federal agencies must fix it by 4 Jun 2026.","what":"CVE-2025-34291 is a critical vulnerability in Langflow Langflow, published on 5 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-34291 and fix it if it is affected.\n\nWhat it is: CVE-2025-34291 is a critical vulnerability in Langflow Langflow, published on 5 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: Yes. Attackers have exploited CVE-2025-34291 in the wild since at least 21 May 2026.\n\nAffected packages and fixed versions:\n- langflow (PyPI): affected all versions; fixed in 1.7.0\n- langflow (PyPI): affected all versions; fixed in 1.7.0\n- langflow (PyPI): affected all versions; fixed in 1.7.0\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-2025-34291/ (Markdown: https://insights.sbomify.com/CVE-2025-34291/index.md)","id":"CVE-2025-34291","markdown":"https://insights.sbomify.com/CVE-2025-34291/index.md","name":"CVE-2025-34291","record":{"aliases":["GHSA-577h-p2hh-v4mv","PYSEC-2025-78","ROOT-APP-PYPI-CVE-2025-34291"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Langflow web application","requires_auth":"none","summary":"Attackers can hijack user sessions via CORS misconfiguration to steal tokens and execute arbitrary code on Langflow instances.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"langflow","vendor":"langflow"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"description":"Langflow versions up to and including 1.6.9 contain a chained vulnerability that enables account takeover and remote code execution. An overly permissive CORS configuration (allow_origins='*' with allow_credentials=True) combined with a refresh token cookie configured as SameSite=None allows a malicious webpage to perform cross-origin requests that include credentials and successfully call the refresh endpoint. An attacker-controlled origin can therefore obtain fresh access_token / refresh_token pairs for a victim session. Obtained tokens permit access to authenticated endpoints — including built-in code-execution functionality — allowing the attacker to execute arbitrary code and achieve full system compromise.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-05-18","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-05-18T12:26:03Z","kind":"github_poc","ref":"https://github.com/amnnrth/CVE-2025-34291_cors_security_scanner","stars":0,"title":"A lightweight Python-based security assessment tool for detecting dangerous Cross-Origin Resource Sharing (CORS) misconfigurations - CVE-2025-34291."},{"date":"2026-05-22T20:44:28Z","kind":"github_poc","ref":"https://github.com/ridhinva/langflow-cors-scanner","stars":0,"title":"Scanner: CVE-2025-34291 Langflow Origin Validation Error / CORS Misconfiguration — Python checker (CISA KEV)"},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-34291.yaml","stars":null,"title":"Langflow AI \u003c= 1.6.9 - CORS Misconfiguration"}],"tier":"exploited"},"has_fix":true,"headline":"Langflow Origin Validation Error","id":"CVE-2025-34291","indexable":true,"kev":{"dateAdded":"2026-05-21","dueDate":"2026-06-04","knownRansomwareCampaignUse":"Unknown","product":"Langflow","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Langflow","vulnerabilityName":"Langflow Origin Validation Error Vulnerability"},"kind":"cve","links":{"ecosystem":"PyPI","product":"langflow:langflow","products":["langflow:langflow"],"type":"csrf","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"BeWelcome/Rox PHP Object Injection RCE","id":"CVE-2025-34292"},"packages":[{"ecosystem":"PyPI","fixed":["1.7.0"],"introduced":["0"],"last_affected":[],"package":"langflow","purl":null,"source":"GHSA-577h-p2hh-v4mv"},{"ecosystem":"PyPI","fixed":["1.7.0"],"introduced":["0"],"last_affected":[],"package":"langflow","purl":"pkg:pypi/langflow","source":"GHSA-577h-p2hh-v4mv"},{"ecosystem":"PyPI","fixed":["1.7.0"],"introduced":["0"],"last_affected":[],"package":"langflow","purl":"pkg:pypi/langflow","source":"PYSEC-2025-78"}],"prev":{"headline":"Versa SASE Client for Windows \u003c 7.9.5 Arbitrary Folder Deletion Leading to Local Privilege Escalation","id":"CVE-2025-34290"},"products":["Langflow"],"published":"2025-12-05","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.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":"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":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["Langflow"]},"summary":"Attackers can hijack user sessions via CORS misconfiguration to steal tokens and execute arbitrary code on Langflow instances.","url":"https://insights.sbomify.com/CVE-2025-34291/"}