CVE-2026-51886 Langflow: Title Authenticated Remote Code Execution in validate_code via Malicious Decorators Description
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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 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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi langflow(PyPI) | = 1.7.2; = 1.7.3; = 1.8.0; = 1.8.0rc0 +25 more | 1.10.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi langflow(PyPI) | >= 1.7.2, < 1.10.1 | 1.10.1 |
| pypi langflow(PyPI) | = 1.10.0 | No fix listed |
| pypi langflow(PyPI) | = 1.10.0rc0 | No fix listed |
| pypi langflow(PyPI) | = 1.10.1rc0 | No fix listed |
| pypi langflow(PyPI) | = 1.10.1rc3 | No fix listed |
| pypi langflow(PyPI) | = 1.7.2 | No fix listed |
| pypi langflow(PyPI) | = 1.7.3 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0rc0 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0rc1 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0rc2 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0rc3 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0rc4 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0rc5 | No fix listed |
| pypi langflow(PyPI) | = 1.8.0rc6 | No fix listed |
| pypi langflow(PyPI) | = 1.8.1 | No fix listed |
| pypi langflow(PyPI) | = 1.8.2 | No fix listed |
| pypi langflow(PyPI) | = 1.8.3 | No fix listed |
| pypi langflow(PyPI) | = 1.8.3rc0 | No fix listed |
| pypi langflow(PyPI) | = 1.8.4 | No fix listed |
| pypi langflow(PyPI) | = 1.9.0 | No fix listed |
| pypi langflow(PyPI) | = 1.9.1 | No fix listed |
| pypi langflow(PyPI) | = 1.9.2 | No fix listed |
| pypi langflow(PyPI) | = 1.9.3 | No fix listed |
| pypi langflow(PyPI) | = 1.9.3rc0 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi langflow(PyPI) | = 1.9.4 | No fix listed |
| pypi langflow(PyPI) | = 1.9.5 | No fix listed |
| pypi langflow(PyPI) | = 1.9.6 | No fix listed |
| pypi langflow(PyPI) | = 1.9.6rc0 | No fix listed |
References
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com exploit
- github.com patch
- github.com patch
- gist.github.com
- github.com product
- github.com
- pypi.org product
- github.com vendor-advisory
- ENISA EUVD EUVD-2026-91120 third-party-advisory