LIVE LOG · recorded complete source-check dates between October 14 and November 30, 2026; excludes entries with incomplete or unverified source checks · site updated Nov 12, 2026, 12:09 AM ET

← All incidents

Langflow validate_code endpoint allows authenticated remote code execution (CVE-2026-51886)

Vulnerability · langflow · HIGH

Incident date
DisclosedOct 5, 2026 (GitHub advisory)
Added hereNov 20, 4:02 PM ET
Last verifiedNov 20, 2026

Summary

The /api/v1/validate/code endpoint in Langflow executes submitted function definitions, and Python evaluates decorators when a function is defined. Any authenticated user could therefore run arbitrary code on the server. The vulnerable range is at least 1.7.2 and before 1.10.1, and the fix is in 1.10.1. The GitHub advisory lists severity as high with CVSS 8.8, while its summary text calls the flaw critical.

Severity

HIGH CVSS score 8.8 rates High, matching the GitHub advisory.

Kit, our email provider, gets your address only to send the newsletter. Every email has an unsubscribe link. Privacy policy.

Timeline

  1. May 26, 2026
    A public issue titled Code Injection in the /api/v1/validate/code endpoint was opened in the Langflow repository.
  2. Oct 5, 2026
    GitHub advisory GHSA-w584-2h2r-2hvf for CVE-2026-51886 was published.

How it happened

validate_code() parses submitted code and executes function definitions with exec(). Decorators are evaluated at definition time, so a malicious decorator runs during validation. The advisory says the endpoint had no authentication before v1.7.2. From v1.7.2 through v1.10.0 it required a valid session, or no login at all under AUTO_LOGIN. Code runs with the privileges of the Langflow process.

How to check your app

Sources

Corrections and updates

None. Re-checked against every source on Nov 20, 2026.

Cite this entry
Title
Langflow validate_code endpoint allows authenticated remote code execution (CVE-2026-51886)
Added
Nov 20, 2026
URL
https://vibeincidents.com/incidents/langflow-cve-2026-51886/
Suggested citation
VibeIncidents. "Langflow validate_code endpoint allows authenticated remote code execution (CVE-2026-51886)." Nov 20, 2026. https://vibeincidents.com/incidents/langflow-cve-2026-51886/