CriticalVulnerability
CVE-2026-51886: Langflow code injection in /api/v1/validate/code endpoint
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-51886
- Published
- Record updated
- Affected
- langflow >= 1.7.2, < 1.10.1
- Fixed in
- 1.10.1
- released June 23, 2026, 100 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%
Summary
Langflow up to version 1.9.3 contains a code injection flaw in the validate-post_validate_code endpoint, implemented in src/backend/base/langflow/api/v1/validate.py. An authenticated attacker can submit Python code to /api/v1/validate/code, which executes it on the server without sandboxing or security controls, enabling arbitrary code execution. The source states the route accepts raw Python source without a visible entitlement guard.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langflowPyPIReaches an LLM package through dependencies
Related items
- MediumFamiliar weaknesses, exploited faster: defending against agentic cyber attacksSimilar attack · UK NCSC
- MediumHackers Exploit N-able MailAssure Flaw While AI Agents Exploit MONAI Label Zero-DaySimilar attack · The Hacker News
- HighCVE-2026-133448: AutoGPT Claude Code CLI prompt preprocessing bypasses tool allow-listSimilar attack · NVD/CVE Database
- CriticalCVE-2026-118285: Azure Machine Learning server-side request forgery allows privilege elevationSimilar attack · NVD/CVE Database
- HighCVE-2026-130164: Hermes Agent code execution via screen environment file mergeSimilar attack · NVD/CVE Database