Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-51886: Remote Code Execution in Langflow Python Code Validation

Published Oct 1, 2026 · Updated 15 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS0.60%50th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
IdentifiersCVE-2026-51886CWE-94 · Improper Control of Generation of…

CVE-2026-51886 is a code injection vulnerability in Langflow's Python code-validation functionality. The validate_code() function executes submitted function definitions during validation, allowing malicious decorators and default-argument expressions to execute arbitrary Python code without sandboxing. Initial descriptions identify versions through 1.9.3; the fixing advisory identifies the vulnerable execution path through version 1.10.0. Exploitation requires authentication in versions 1.7.2 through 1.10.0 unless AUTO_LOGIN is enabled; earlier versions expose the same execution sink without authentication. Successful exploitation executes code with the privileges of the Langflow process. Version 1.10.1 fixes the vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Arbitrary server-side code execution can compromise the confidentiality, integrity, and availability of resources accessible to the Langflow process. Attackers can read environment variables, API keys, database credentials, and application data; modify files; execute commands; and attack reachable internal services. The extent of compromise depends on process privileges, container isolation, network access, and available credentials.

Mitigation

If you can’t patch tonight, do this now.

Until the upgrade is deployed, disable or block access to /api/v1/validate/code and restrict Langflow to trusted users and private networks or a VPN. Authentication alone is insufficient because authenticated users can exploit the vulnerable validation path. Run Langflow with minimal privileges and strong isolation, avoid mounting container-management sockets, restrict outbound access and cloud metadata access, and minimize attached cloud identity permissions. Where compromise is suspected, rotate potentially exposed provider and application credentials before rotating the Langflow secret key, and review application and cloud activity.

Remediation

Patch, then assume compromise.

Upgrade Langflow and its related packages to version 1.10.1 or later. The fix replaces execution of submitted function definitions with compilation-only validation, preventing decorators and default-argument expressions from being evaluated. Withdrawal of the duplicate advisory does not mean the vulnerability was resolved.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2026-51886 exploited in the wild?
Yes. As of Nov 8, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2026-51886?
Yes. As of Nov 8, 2026, Mallory has reports of a public exploit for CVE-2026-51886.
Is there a patch for CVE-2026-51886?
Upgrade Langflow and its related packages to version 1.10.1 or later. The fix replaces execution of submitted function definitions with compilation-only validation, preventing decorators and default-argument expressions from being evaluated.
How severe is CVE-2026-51886?
CVE-2026-51886 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 0.60% (50th percentile) as of Nov 8, 2026.
Activity feed

Recent activity

4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
vulncheck blogNews · Nov 8, 2026Same Attacker, Different Door: Our Canaries Caught Microsoft's Agentic AI Secret Hunter Exploiting Langflow | Blog | VulnCheckA Langflow vulnerability targeted by the separate actor associated with IP address 179.43.191.82. Its technical mechanism and individual exploitation outcome are not described. The article recommends restricting Langflow exposure through authentication and private networking.Read more ↗tenable cloud security pluginsNews · Oct 6, 2026SCA: security update for langflow (GHSA-w584-2h2r-2hvf) | Tenable®A remote code execution vulnerability in langflow-ai Langflow through version 1.9.3. The validation endpoint passes attacker-supplied Python into a server-side compile/exec path without sandboxing or adequate security controls. The plugin reports CVSS v3 severity of 9.8, although its privileges-not-required vector conflicts with the description's authentication requirement. Updating to version 1.10.1 or later is the stated remediation.Read more ↗ghsa syntheticNews · Oct 5, 2026GHSA-w584-2h2r-2hvfLangflow's validate_code() uses exec() on user-supplied Python function definitions, causing decorators or default-argument expressions to execute immediately. Attackers can run arbitrary commands with the Langflow process's privileges, exposing credentials, enabling file modification, and facilitating internal-network attacks. Versions 1.7.2 through 1.10.0 require authentication, although AUTO_LOGIN permits access without normal login. The advisory also states that the same execution sink was reachable without authentication before 1.7.2. Version 1.10.1 fixes the issue by compiling submitted function definitions without executing them. The referenced advisories describe the same root cause through different execution techniques.Read more ↗
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.