{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-51886","id":"CVE-2026-51886","title":"Langflow: Title Authenticated Remote Code Execution in  validate_code  via Malicious Decorators  Description","description":"langflow-ai langflow v1.9.3 is affected by: Code Injection. The impact is: execute arbitrary code (remote). The component is: src/backend/base/langflow/api/v1/validate.py:validate-post_validate_code-a-real-authenticated-http-post-to-api-v1. The attack vector is: Attack surface: HTTP or browser-backed service path. A public-facing route accepts raw Python source and forwards it into a server-side c","descriptionLong":"langflow-ai langflow v1.9.3 is affected by: Code Injection. The impact is: execute arbitrary code (remote). The component is: src/backend/base/langflow/api/v1/validate.py:validate-post_validate_code-a-real-authenticated-http-post-to-api-v1. The attack vector is: Attack surface: HTTP or browser-backed service path. A public-facing route accepts raw Python source and forwards it into a server-side compile/exec validation path without any visible entitlement guard. ¶¶ A weakness has been identified in langflow-ai langflow up to 1.9.3. langflow contains a code injection vulnerability in validate-post_validate_code-a-real-authenticated-http-post-to-api-v1 (src/backend/base/langflow/api/v1/validate.py:13). An authenticated attacker can execute arbitrary Python code on the server by submitting malicious code to the /api/v1/validate/code endpoint, which directly executes user-supplied code without sandboxing or security controls.","published":"2026-10-01T00:00:00.000Z","updated":"2026-11-04T02:47:39.635920770Z","reserved":"2026-06-08T00:00:00.000Z","status":"Awaiting Analysis","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langflow","purl":"pkg:pypi/langflow","ranges":[">=1.7.2 <1.10.1"],"fixed":["1.10.1"],"advisory":"GHSA-w584-2h2r-2hvf"}],"cwes":["CWE-94"],"aliases":["GHSA-w584-2h2r-2hvf","PYSEC-2026-4236"],"references":[{"url":"https://github.com/langflow-ai/langflow/issues/13336","tags":["exploit","report","web"]},{"url":"https://gist.github.com/Ro1ME/c11b1e63e4e8fca6b25275144f25ec2a","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/51xxx/CVE-2026-51886.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-51886","tags":["advisory"]},{"url":"https://github.com/langflow-ai/langflow/security/advisories/GHSA-w584-2h2r-2hvf","tags":["web"]},{"url":"https://github.com/langflow-ai/langflow/pull/13696","tags":["web"]},{"url":"https://github.com/langflow-ai/langflow/commit/e7c33dbaade20b5295c7fa26bf83cc1ff68fba02","tags":["web"]},{"url":"https://github.com/langflow-ai/langflow","tags":["package"]},{"url":"https://github.com/langflow-ai/langflow/releases/tag/v1.10.1","tags":["web"]},{"url":"https://pypi.org/project/langflow","tags":["package"]},{"url":"https://github.com/advisories/GHSA-w584-2h2r-2hvf","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.00602,"epssPercentile":0.49602,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-51886","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-51886","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-51886","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w584-2h2r-2hvf","ok":true,"note":"GHSA-w584-2h2r-2hvf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-51886","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}