/Vulnerability Library

Langflow <=1.2.x - Unauthenticated Remote Code Execution via validate_code

CVE-2026-0768
Verified

Description

Langflow <= 1.2.x exposes POST /api/v1/validate/code without any authentication. The endpoint calls validate_code() which exec()s user-supplied Python code. Default-argument expressions in Python execute at function-definition time, allowing arbitrary OS command execution without authentication.

Severity

Critical

CVSS Score

9.8

Exploit Probability

23%

Affected Product

langflow

Published Date

September 15, 2026

Template Author

dhiyaneshdk

CVE-2026-0768.yaml
9.8Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE ID:
cve-2026-0768
CWE ID:
cwe-94

References

https://nvd.nist.gov/vuln/detail/CVE-2026-0768https://www.pruva.dev/reproductions/REPRO-2026-00342

Remediation Steps

Upgrade Langflow to a version that requires authentication on the validate/code endpoint.